From f11c72b26d1792eddbc279e16c1baf67aee4135e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 5 Oct 2021 12:09:36 -0400 Subject: [PATCH] added zenity gun --- groundstation/sstv_decode_prompt.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 16fdea18..4419933a 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -30,6 +30,10 @@ sudo killall -9 CubicSDR &>/dev/null #echo "s" >> .mode +frequency=$(zenity --list 2>/dev/null --title="Choose the frequency" --column="kHz" --column="Use" 145800 "ISS" 434900 "CubeSatSim" 144800 Other "Choose another frequency" SSTV "Test SSTV decoding with WAV file") + +#echo $frequency + echo echo "Choose the number for the frequency for SSTV decoding:" @@ -41,14 +45,14 @@ echo read -r choice -if [ "$choice" = "1" ]; then +if [ "$choice" = "1" ] || [ "$frequency" = "145800" ]; then frequency=145800000 echo "Frequency is" $frequency echo echo "If the ISS is overhead (check Gpredict) and in SSTV mode (see social media), you can receive images." -elif [ "$choice" = "2" ]; then +elif [ "$choice" = "2" ] || [ "$frequency" = "434900" ]; then frequency=434900000 echo "Frequency is" $frequency @@ -56,7 +60,7 @@ echo echo "If your CubeSatSim is transmitting in SSTV mode (mode 6) you should get images." echo "Note: if you see and hear an SSTV signal but don't get any images, the CubeSatSim signal might have a frequency offset. Try rebooting the CubeSatSim to fix." -elif [ "$choice" = "3" ]; then +elif [ "$choice" = "3" ] || [ "$frequency" = "Other" ]; then echo @@ -68,7 +72,7 @@ read -r frequency frequency=$frequency"000" -else +elif [ "$choice" = "4" ] || [ "$frequency" = "SSTV" ]; then echo "A recorded Scottie 2 SSTV WAV file will play and you should see an image decoded." @@ -89,7 +93,7 @@ else fi -if [ "$choice" != "4" ]; then +if [ "$choice" != "4" ] && [ "$frequency" != "SSTV" ]; then #echo $frequency