Update sstv_decode_prompt.sh retry in 5 sec

fiabv4-auto-tune
Alan Johnston 2 months ago committed by GitHub
parent dcab91164a
commit 73bfd12ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.