From 28652cae1754ac624eefdcaa349684f6a9a91718 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 14 Feb 2020 03:47:10 +0000 Subject: [PATCH] updated demo with new arg values --- demo.sh | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/demo.sh b/demo.sh index 51f0284f..c65136ec 100755 --- a/demo.sh +++ b/demo.sh @@ -1,11 +1,24 @@ #!/bin/bash -echo -e "\nDemo of CubeSatSim sends AFSK telemetry at 434.9 MHz continuously\n\n" +echo -e "\nDemo of CubeSatSim at 434.9 MHz continuously\n\n" #exit -sudo killall -9 rpitx -sudo killall -9 sendiq -sudo fuser -k 8080/tcp +y=$(last reboot | grep ^reboot | wc -l) +echo $y -/home/pi/CubeSatSim/radioafsk a 3 +if (( $y % 2 == 0 )) +then + echo -e "\n Continuous FSK Mode\n\n" + /home/pi/CubeSatSim/radioafsk f +else + + echo -e "\n Alternating FSK, BPSK, and AFSK telemetry Mode \n\n" + while true; do + echo -e "\n Changing mode ******\n\n" + + /home/pi/CubeSatSim/radioafsk a 5 + /home/pi/CubeSatSim/radioafsk f 5 + /home/pi/CubeSatSim/radioafsk b 5 + done +fi