added cycling mode conditionals

pull/60/head
alanbjohnston 5 years ago committed by GitHub
parent df27374cd2
commit ddcd6c7d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,19 @@ if [ "$1" = "c" ]; then
echo "Mode cycling" echo "Mode cycling"
y=$(last reboot | grep ^reboot | wc -l) y=$(last reboot | grep ^reboot | wc -l)
echo $y echo $y
if [ $(($y % 4)) = 0 ]; then
echo "Mode is continuous AFSK"
python -u /home/pi/CubeSatSim/rpitx.py a
elif [ $(($y % 4)) = 1 ]; then
echo "Mode is continuous BPSK"
python -u /home/pi/CubeSatSim/rpitx.py b
elif [ $(($y % 4)) = 2 ]; then
echo "Mode is continuous SSTV"
python -u /home/pi/CubeSatSim/rpitx.py s
else
echo "Mode is continuous FSK"
python -u /home/pi/CubeSatSim/rpitx.py f
fi
else else
python -u /home/pi/CubeSatSim/rpitx.py $1 python -u /home/pi/CubeSatSim/rpitx.py $1
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.