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
if [ $fail ]; then
echo "fail has a value!"
echo $fail
fi
MODE=$fail
else
FILE=/home/pi/CubeSatSim/failure_mode.txt
if [ -f "$FILE" ]; then
@ -1530,9 +1529,9 @@ elif [ "$1" = "-M" ]; then
9)
echo "Failed MPU Sensor"
;;
# "10")
# echo "Failed FM Audio"
# ;;
# "10")
# echo "Failed FM Audio"
# ;;
*)
echo "Unknown Failure"
;;
@ -1556,12 +1555,13 @@ elif [ "$1" = "-M" ]; then
echo " 7 Failed Payload"
echo " 8 Failed BME Sensor"
echo " 9 Failed MPU Sensor"
# echo "10 Failed FM Audio"
# echo "10 Failed FM Audio"
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"
read MODE
fi
echo
if [ "$MODE" = "0" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.