From bead33ce3f7d16c043bb23caab037e031eb8d1a7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 7 Aug 2025 23:20:51 -0400 Subject: [PATCH] Update config add -M failure_mode set --- config | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config b/config index 36192384..d5d87517 100755 --- a/config +++ b/config @@ -336,6 +336,11 @@ if [ "$1" = "" ]; then echo "Transmit beacon telemetry is ON" fi + echo + echo -n "Simulated failure mode is: " + cat /home/pi/CubeSatSim/failure_mode.txt + echo + echo echo -e "Current sim.cfg configuration file:" # echo @@ -1430,6 +1435,21 @@ elif [ "$1" = "-j" ]; then restart=1 # 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 echo "config OPTION" @@ -1467,6 +1487,7 @@ elif [ "$1" = "-h" ]; then echo " -o Change telemetry beacon transmit state" echo " -L Change microphone level for command and control" echo " -g Reset configuration back to default settings" + echo " -M Set simulated failure mode" echo exit