|
|
|
@ -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
|
|
|
|
@ -1562,6 +1561,7 @@ elif [ "$1" = "-M" ]; then
|
|
|
|
# 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
|
|
|
|
|