Update sstv_decode_prompt.sh fix echos

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

@ -134,7 +134,7 @@ if [ "$autotune" = "1" ]; then
retries=5 retries=5
echo "Starting Auto-tune scanning" echo "Starting Auto-tune scanning"
echo "Scan will stop when confidence exceeds threshold value of " $threshold " or after " $retries " retries" echo "Scan will stop when confidence exceeds threshold value of" $threshold "or after" $retries "retries"
tries=0 tries=0
confidence=0 confidence=0
while [ $tries -le $retries ] && [ "$confidence" -le "$threshold" ]; do while [ $tries -le $retries ] && [ "$confidence" -le "$threshold" ]; do
@ -145,13 +145,13 @@ if [ "$autotune" = "1" ]; then
# echo "auto-tune.txt" # echo "auto-tune.txt"
# cat /home/pi/CubeSatSim/groundstation/auto-tune.txt # cat /home/pi/CubeSatSim/groundstation/auto-tune.txt
confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) confidence=$(awk '{print $2}' /home/pi/CubeSatSim/groundstation/auto-tune.txt)
echo "Auto tune confidence: " $confidence echo "Auto tune confidence:" $confidence
done done
if [ "$confidence" -gt "$threshold" ]; then if [ "$confidence" -gt "$threshold" ]; then
frequency=$(awk '{print $1}' /home/pi/CubeSatSim/groundstation/auto-tune.txt) frequency=$(awk '{print $1}' /home/pi/CubeSatSim/groundstation/auto-tune.txt)
echo "Auto tune frequency: " $frequency echo "Auto tune frequency:" $frequency
else else
echo "Auto tune failed, frequency unchanged" echo "Auto tune failed, frequency unchanged"
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.