Update command don't start carrier C2C if PacSat or Ground mode

master-b-p
Alan Johnston 5 days ago committed by GitHub
parent ca798d3996
commit 8f53997861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,6 +6,12 @@ sudo modprobe snd-aloop
sudo modprobe snd-aloop
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
MODE=$1
FILE=/home/pi/CubeSatSim/command_control
if [ -f "$FILE" ]; then
echo "Radio command and control is ON"
@ -126,17 +132,32 @@ else
fi
if [ "$1" = "d" ]; then
echo "debug mode"
/home/pi/venv/bin/python3 /home/pi/CubeSatSim/squelch_cc.py d
value=`cat /home/pi/CubeSatSim/.mode`
echo "$value" > /dev/null
set -- $value
MODE=$1
if [ ! "$MODE" = "P" ] && [ ! "$MODE" = "P" ] ; then
if [ "$1" = "d" ]; then
echo "debug mode"
/home/pi/venv/bin/python3 /home/pi/CubeSatSim/squelch_cc.py d
else
/home/pi/venv/bin/python3 /home/pi/CubeSatSim/squelch_cc.py
fi
else
/home/pi/venv/bin/python3 /home/pi/CubeSatSim/squelch_cc.py
fi
echo "Not running Carrier (squelch) Command and Control since PacSat or PacSat Ground Station mode!")
sleep 60
fi
fi
sudo killall -9 direwolf &>/dev/null

Loading…
Cancel
Save

Powered by TurnKey Linux.