From 24d9d0da586259339cd545d09789a6ece330d64c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 8 Nov 2020 10:55:30 -0500 Subject: [PATCH] Update demo.sh --- demo.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/demo.sh b/demo.sh index 5a3d0c91..f92a163e 100755 --- a/demo.sh +++ b/demo.sh @@ -20,4 +20,17 @@ else echo "Mode cycling" y=$(last reboot | grep ^reboot | wc -l) echo $y -fi + + if [ "$y" % 4 = "0" ]; then + echo "Mode is continuous AFSK" + /home/pi/CubeSatSim/radioafsk afsk + elif [ "$1" = "b" ]; then + echo "Mode is continuous BPSK" + /home/pi/CubeSatSim/radioafsk bpsk + elif [ "$1" = "s" ]; then + echo "Mode is continuous SSTV" + while true; do sleep 5; done + els3 [ "$1" = "f" ]; then + echo "Mode is continuous FSK" + /home/pi/CubeSatSim/radioafsk fsk + fi