Update config add transmit command beacon

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.