|
|
|
|
@ -1106,6 +1106,15 @@ elif [ "$1" = "-F" ]; then
|
|
|
|
|
|
|
|
|
|
elif [ "$1" = "-o" ]; then
|
|
|
|
|
|
|
|
|
|
value=`cat /home/pi/CubeSatSim/.mode`
|
|
|
|
|
echo "$value" > /dev/null
|
|
|
|
|
set -- $value
|
|
|
|
|
|
|
|
|
|
if [ "$1" == "n" ]; then
|
|
|
|
|
|
|
|
|
|
transmit_command_beacon
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
echo
|
|
|
|
|
echo "Change telemetry beacon transmit state"
|
|
|
|
|
echo
|
|
|
|
|
@ -1122,7 +1131,7 @@ elif [ "$1" = "-o" ]; then
|
|
|
|
|
echo "Turn beacon telemetry ON"
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1
|
|
|
|
|
sudo systemctl restart rpitx
|
|
|
|
|
# restart=1
|
|
|
|
|
# restart=1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
@ -1136,7 +1145,8 @@ elif [ "$1" = "-o" ]; then
|
|
|
|
|
echo "Turn beacon telemetry OFF"
|
|
|
|
|
touch /home/pi/CubeSatSim/beacon_off
|
|
|
|
|
sudo systemctl restart rpitx
|
|
|
|
|
# restart=1
|
|
|
|
|
# restart=1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|