Update sstv_decode_prompt.sh cat auto-tune.txt

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

@ -122,18 +122,23 @@ setsid qsstv &
sleep 5
python3 /home/pi/CubeSatSim/groundstation/auto-tune.py 434900000 n 2> null > /home/pi/CubeSatSim/groundstation/auto-tune.txt
threshold="1"
echo "auto-tune.txt"
cat /home/pi/CubeSatSim/groundstation/auto-tune.txt
threshold="3"
confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt)
echo "Auto tune confidence: "
echo $confidence
if [ "$confidence" -lt "$threshold" ]; then
if [ "$confidence" -lt "$threshold" ]; then
sleep 10
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
confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt)
echo "Auto tune confidence: "
echo $confidence
fi
frequency=$(awk '{print $1}' auto-tune.txt)
echo "Auto tune frequency: "

Loading…
Cancel
Save

Powered by TurnKey Linux.