Update config change_command using dtmf or APRS

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent 43d997dd98
commit 8b5796fd78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1106,18 +1106,9 @@ fi
function transmit_command_aprs {
echo "Mode 1 is APRS"
STRING="AMSAT-11>APCSS:=3901.40N\07704.39WShi hi MODE=a"
sudo rm /home/pi/CubeSatSim/t.txt
echo $STRING > /home/pi/CubeSatSim/t.txt
echo
echo -n "Sending APRS packet "
echo $STRING
sudo touch /home/pi/CubeSatSim/ready
sleep 5
sudo touch /home/pi/CubeSatSim/ready
FILE=/home/pi/CubeSatSim/transmit_dtmf
if [ -f "$FILE" ]; then
sleep 5
echo "Stopping command and control"
sudo systemctl stop command
@ -1132,5 +1123,20 @@ function transmit_command_aprs {
echo "Resuming command and control"
sudo systemctl start command
else
STRING="AMSAT-11>APCSS:=3901.40N\07704.39WShi hi MODE=a"
sudo rm /home/pi/CubeSatSim/t.txt
echo $STRING > /home/pi/CubeSatSim/t.txt
echo
echo -n "Sending APRS packet to change mode to APRS"
echo $STRING
sudo touch /home/pi/CubeSatSim/ready
sleep 5
sudo touch /home/pi/CubeSatSim/ready
sleep 5
fi
exit
}

Loading…
Cancel
Save

Powered by TurnKey Linux.