From 6ebfc9c46213b2d0b48db8f00b4dbacfe2b2de85 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 28 Oct 2025 08:45:38 -0400 Subject: [PATCH] Update sstv_decode_prompt.sh only print autotune when above threshold --- groundstation/sstv_decode_prompt.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 40f9d9f6..48d00ffb 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -127,7 +127,7 @@ python3 /home/pi/CubeSatSim/groundstation/auto-tune.py 434900000 n 2> null > /ho # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt threshold="1" confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) -echo "Auto tune confidence: " +echo -n "Auto tune confidence: " echo $confidence if [ "$confidence" -le "$threshold" ]; then @@ -136,7 +136,7 @@ if [ "$confidence" -le "$threshold" ]; then # echo "auto-tune.txt" # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) - echo "Auto tune confidence: " + echo -n "Auto tune confidence: " echo $confidence if [ "$confidence" -le "$threshold" ]; then @@ -145,18 +145,17 @@ if [ "$confidence" -le "$threshold" ]; then # echo "auto-tune.txt" # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) - echo "Auto tune confidence: " + echo -n "Auto tune confidence: " echo $confidence fi fi if [ "$confidence" -gt "$threshold" ]; then frequency=$(awk '{print $1}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) + echo -n "Auto tune frequency: " + echo $frequency fi -echo "Auto tune frequency: " -echo $frequency - #sudo systemctl restart cubesatsim value=`aplay -l | grep "Loopback"`