Update config set $2 to mode

sim-fail-2
Alan Johnston 4 months ago committed by GitHub
parent 708f9359d0
commit 9c9eb24b8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1490,9 +1490,8 @@ elif [ "$1" = "-j" ]; then
elif [ "$1" = "-M" ]; then elif [ "$1" = "-M" ]; then
if [ $fail ]; then if [ $fail ]; then
echo "fail has a value!" MODE=$fail
echo $fail else
fi
FILE=/home/pi/CubeSatSim/failure_mode.txt FILE=/home/pi/CubeSatSim/failure_mode.txt
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
@ -1530,9 +1529,9 @@ elif [ "$1" = "-M" ]; then
9) 9)
echo "Failed MPU Sensor" echo "Failed MPU Sensor"
;; ;;
# "10") # "10")
# echo "Failed FM Audio" # echo "Failed FM Audio"
# ;; # ;;
*) *)
echo "Unknown Failure" echo "Unknown Failure"
;; ;;
@ -1556,12 +1555,13 @@ elif [ "$1" = "-M" ]; then
echo " 7 Failed Payload" echo " 7 Failed Payload"
echo " 8 Failed BME Sensor" echo " 8 Failed BME Sensor"
echo " 9 Failed MPU Sensor" echo " 9 Failed MPU Sensor"
# echo "10 Failed FM Audio" # echo "10 Failed FM Audio"
echo echo
# echo "Enter the failure number to set: 0 - 10" # 10 sometimes gets stuck on carrier # echo "Enter the failure number to set: 0 - 10" # 10 sometimes gets stuck on carrier
echo "Enter the failure number to set: 0 - 9" echo "Enter the failure number to set: 0 - 9"
read MODE read MODE
fi
echo echo
if [ "$MODE" = "0" ]; then if [ "$MODE" = "0" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.