Update config print TX freq in transmit command

send-commands
Alan Johnston 2 weeks ago committed by GitHub
parent c9cb1eb508
commit 23c1a9a28d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,15 +2,25 @@
function transmit_command {
MODE=$1
echo "CubeSatSim is in Transmit Commands mode"
echo
value=`cat /home/pi/CubeSatSim/sim.cfg`
echo "$value" > /dev/null
set -- $value
echo -n "TX Frequency is: "
echo -n ${7}
echo " MHz"
FILE=/home/pi/CubeSatSim/transmit_dtmf
if [ -f "$FILE" ]; then
echo
echo "Sending DTMF tones to change to mode "$1
echo "Sending DTMF tones to change to mode "$MODE
case $1 in
case $MODE in
a)
number=1
@ -61,11 +71,6 @@ function transmit_command {
else
MODE=$1
value=`cat /home/pi/CubeSatSim/sim.cfg`
echo "$value" > /dev/null
set -- $value
STRING="$1-11>APCSS:=3901.40N\07704.39WShi hi MODE="$MODE
sudo rm /home/pi/CubeSatSim/t.txt > /dev/null 2>&1
echo $STRING > /home/pi/CubeSatSim/t.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.