|
|
|
@ -1094,6 +1094,41 @@ elif [ "$1" = "-F" ]; then
|
|
|
|
## sudo reboot now
|
|
|
|
## sudo reboot now
|
|
|
|
# sudo systemctl restart rpitx
|
|
|
|
# sudo systemctl restart rpitx
|
|
|
|
# fi
|
|
|
|
# fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif [ "$1" = "-o" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "Change telemetry beacon transmit state"
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FILE=/home/pi/CubeSatSim/beacon_off
|
|
|
|
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
|
|
|
|
echo "Transmit beacon telemetry is off"
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "Do you want to turn beacon telemetry ON (y/n) "
|
|
|
|
|
|
|
|
read reset
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
|
|
|
|
|
|
|
|
echo "Turn beacon telemetry ON"
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1
|
|
|
|
|
|
|
|
restart=1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Transmit beacon telemetry is on"
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "Do you want to turn beacon telemetry OFF(y/n) "
|
|
|
|
|
|
|
|
read reset
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$reset" = "y" ] || [ "$reset" = "yes" ] ; then
|
|
|
|
|
|
|
|
echo "Turn beacon telemetry OFF"
|
|
|
|
|
|
|
|
touch /home/pi/CubeSatSim/beacon_off
|
|
|
|
|
|
|
|
restart=1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
elif [ "$1" = "-H" ]; then
|
|
|
|
elif [ "$1" = "-H" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
# echo
|
|
|
|
# echo
|
|
|
|
@ -1277,6 +1312,8 @@ elif [ "$1" = "-h" ]; then
|
|
|
|
echo " -P Change the PL (Private Line) CTCSS/CDCSS codes for RX and TX"
|
|
|
|
echo " -P Change the PL (Private Line) CTCSS/CDCSS codes for RX and TX"
|
|
|
|
echo " -A Transmit APRS control packets to control another CubeSatSim"
|
|
|
|
echo " -A Transmit APRS control packets to control another CubeSatSim"
|
|
|
|
echo " -D Change Transmit command state APRS or DTMF"
|
|
|
|
echo " -D Change Transmit command state APRS or DTMF"
|
|
|
|
|
|
|
|
echo " -o Change telemetry beacon transmit state"
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
exit
|
|
|
|
exit
|
|
|
|
|
|
|
|
|
|
|
|
|