From 8a125b1981cb647662b8f02c2fd5b7f3aa537ee3 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 5 Oct 2021 11:45:12 -0400 Subject: [PATCH] testing cubesatsim --- groundstation/packet.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/groundstation/packet.sh b/groundstation/packet.sh index 4d1e9fbf..29579421 100755 --- a/groundstation/packet.sh +++ b/groundstation/packet.sh @@ -26,11 +26,11 @@ sudo killall -9 CubicSDR &>/dev/null echo -frequency=$(zenity --list 2>/dev/null --title="Choose the frequency" --column="kHz" --column="Use" 144390 "APRS US 2m" 434900 "CubeSatSim" 144800 "APRS European 2m" 145175 "APRS Australian 2m" Other "Choose another frequency" 145825 "APRS on ISS" 437100 "Serenity CubeSat 4800 bps" Serenity "Test Serenity CubeSat decoding with WAV file" APRS "Test APRS decoding with CubeSatSim WAV file")"000" +frequency=$(zenity --list 2>/dev/null --title="Choose the frequency" --column="kHz" --column="Use" 144390 "APRS US 2m" 434900 "CubeSatSim" 144800 "APRS European 2m" 145175 "APRS Australian 2m" Other "Choose another frequency" 145825 "APRS on ISS" 437100 "Serenity CubeSat 4800 bps" Serenity "Test Serenity CubeSat decoding with WAV file" APRS "Test APRS decoding with CubeSatSim WAV file") -echo $frequency +#echo $frequency -if [[ $frequency -eq "000" ]]; then +if [ -z "$frequency" ]; then echo "Choose the number for the packet decoding option:" echo @@ -51,7 +51,7 @@ if [ "$choice" = "1" ]; then frequency=144390000 -elif [ "$choice" = "2" ]; then +elif [ "$choice" = "2" ] || [ "$frequency" = "434900" ] ; then frequency=434900000 echo