Update config print result

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

@ -1485,6 +1485,7 @@ elif [ "$1" = "-M" ]; then
echo "Set simulated failure mode"
echo
echo "0 No Failure (turn OFF)"
echo "1 +X Solar Panel Failure"
echo "2 -X Solar Panel Degredation"
echo "3 -Y Solar Panel Short Circuit"
@ -1496,12 +1497,51 @@ elif [ "$1" = "-M" ]; then
echo "9 Failed MPU Sensor"
echo
echo "Enter the failure number to change: 0 - 9"
echo "Enter the failure number to set: 0 - 9"
read MODE
echo
echo -n "Setting simulated failure mode: "
echo $MODE
if [ "$MODE" = "0" ]; then
echo "Setting No Simulated Failure"
else
echo -n "Setting Simulated "
case $MODE in
1)
echo "+X Solar Panel Failure"
;;
2)
echo "-X Solar Panel Degredation"
;;
3)
echo "-Y Solar Panel Short Circuit"
;;
4)
echo "Failed I2C Bus 1"
;;
5)
echo "Failed I2C Bus 3"
;;
6)
echo "Failed Camera"
;;
7)
echo "Failed Payload"
;;
8)
echo "Failed BME Sensor"
;;
9)
echo "Failed MPU Sensor"
;;
*)
echo "Unknown Failure"
;;
esac
fi
# echo $MODE
echo
echo $MODE > /home/pi/CubeSatSim/failure_mode.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.