From 1da5987b77c405203a7c6c622c69a61df3f38c66 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 23 Aug 2021 21:16:03 -0400 Subject: [PATCH] added frequency selection in kiloHertz --- groundstation/sstv_decode_prompt.sh | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 4371bfcf..00ff13a3 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -34,19 +34,35 @@ sudo killall -9 CubicSDR &>/dev/null echo echo "Choose the number for the frequency for SSTV decoding:" -echo "1. ISS (145.8 MHz)" -echo "2. CubeSatSim (434.9 MHz)" -echo "3. Enter a frequency" +echo "1. ISS (145800Hz)" +echo "2. CubeSatSim (434900 kHz)" +echo "3. Enter a frequency in kiloHertz" echo read -r choice if [ "$choice" = "1" ]; then -frequency=145.8 +frequency=145800 + +elif [ "$choice" = "2" ]; then + +frequency=434900 + +else + +echo + +echo "Enter the frequency in kiloHertz" + +echo + +read -r frequency fi +sleep 2 + qsstv & sleep 5 @@ -58,7 +74,8 @@ echo "$value" > /dev/null set -- $value #rtl_fm -M fm -f 434.9M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 -rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +#rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 +rtl_fm -M fm -f $frequencyk -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 sleep 5