Update config add -M failure_mode set

master-latency
Alan Johnston 4 months ago committed by GitHub
parent 8866510804
commit bead33ce3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -336,6 +336,11 @@ if [ "$1" = "" ]; then
echo "Transmit beacon telemetry is ON" echo "Transmit beacon telemetry is ON"
fi fi
echo
echo -n "Simulated failure mode is: "
cat /home/pi/CubeSatSim/failure_mode.txt
echo
echo echo
echo -e "Current sim.cfg configuration file:" echo -e "Current sim.cfg configuration file:"
# echo # echo
@ -1430,6 +1435,21 @@ elif [ "$1" = "-j" ]; then
restart=1 restart=1
# fi # fi
elif [ "$1" = "-M" ]; then
echo
echo "Set simulated failure mode"
echo
echo "Enter the failure number to change: 0 - 10"
read MODE
echo
echo -n "Setting simulated failure mode: "
echo $MODE
echo
echo $MODE > /home/pi/CubeSatSim/failure_mode.txt
elif [ "$1" = "-h" ]; then elif [ "$1" = "-h" ]; then
echo "config OPTION" echo "config OPTION"
@ -1467,6 +1487,7 @@ elif [ "$1" = "-h" ]; then
echo " -o Change telemetry beacon transmit state" echo " -o Change telemetry beacon transmit state"
echo " -L Change microphone level for command and control" echo " -L Change microphone level for command and control"
echo " -g Reset configuration back to default settings" echo " -g Reset configuration back to default settings"
echo " -M Set simulated failure mode"
echo echo
exit exit

Loading…
Cancel
Save

Powered by TurnKey Linux.