Update sstv_decode_prompt.sh add autotune

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

@ -121,8 +121,25 @@ setsid qsstv &
sleep 5
#sudo systemctl restart cubesatsim
python3 /home/pi/CubeSatSim/groundstation/auto-tune.py 434900000 n 2> null > /home/pi/CubeSatSim/groundstation/auto-tune.txt
threshold="0.1"
confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt)
echo "Auto tune confidence: "
echo $confidence
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
fi
frequency=$(awk '{print $1}' auto-tune.txt)
echo "Auto tune frequency: "
echo $frequency
#sudo systemctl restart cubesatsim
value=`aplay -l | grep "Loopback"`
echo "$value" > /dev/null

Loading…
Cancel
Save

Powered by TurnKey Linux.