Update sstv_decode_prompt.sh only print autotune when above threshold

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

@ -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,17 +145,16 @@ 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)
fi
echo "Auto tune frequency: "
echo -n "Auto tune frequency: "
echo $frequency
fi
#sudo systemctl restart cubesatsim

Loading…
Cancel
Save

Powered by TurnKey Linux.