From 73bfd12ab64eb31d37a4a10558c770fb10f3c36a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 28 Oct 2025 09:05:10 -0400 Subject: [PATCH] Update sstv_decode_prompt.sh retry in 5 sec --- groundstation/sstv_decode_prompt.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/groundstation/sstv_decode_prompt.sh b/groundstation/sstv_decode_prompt.sh index 4b638346..69e49b2a 100755 --- a/groundstation/sstv_decode_prompt.sh +++ b/groundstation/sstv_decode_prompt.sh @@ -122,25 +122,26 @@ echo echo -e "Auto decoding SSTV on $frequency Hz" -sleep 2 +#sleep 2 setsid qsstv & -sleep 5 +#sleep 5 if [ "$autotune" = "1" ]; then - + threshold="1" + retry="5" + source /home/pi/venv/bin/activate python3 /home/pi/CubeSatSim/groundstation/auto-tune.py 434900000 n 2> null > /home/pi/CubeSatSim/groundstation/auto-tune.txt # echo "auto-tune.txt" # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt - threshold="1" confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) echo -n "Auto tune confidence: " echo $confidence if [ "$confidence" -le "$threshold" ]; then - sleep 10 + sleep $retry python3 /home/pi/CubeSatSim/groundstation/auto-tune.py 434900000 n 2> null > /home/pi/CubeSatSim/groundstation/auto-tune.txt # echo "auto-tune.txt" # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt @@ -149,7 +150,7 @@ if [ "$autotune" = "1" ]; then echo $confidence if [ "$confidence" -le "$threshold" ]; then - sleep 10 + sleep $retry python3 /home/pi/CubeSatSim/groundstation/auto-tune.py 434900000 n 2> null > /home/pi/CubeSatSim/groundstation/auto-tune.txt # echo "auto-tune.txt" # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt