|
|
|
@ -137,8 +137,7 @@ 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 -n "Auto tune confidence: "
|
|
|
|
echo "Auto tune confidence: " $confidence
|
|
|
|
echo $confidence
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$confidence" -le "$threshold" ]; then
|
|
|
|
if [ "$confidence" -le "$threshold" ]; then
|
|
|
|
sleep $retry
|
|
|
|
sleep $retry
|
|
|
|
@ -146,8 +145,7 @@ 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 -n "Auto tune confidence: "
|
|
|
|
echo "Auto tune confidence: " $confidence
|
|
|
|
echo $confidence
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$confidence" -le "$threshold" ]; then
|
|
|
|
if [ "$confidence" -le "$threshold" ]; then
|
|
|
|
sleep $retry
|
|
|
|
sleep $retry
|
|
|
|
@ -155,19 +153,19 @@ 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 -n "Auto tune confidence: "
|
|
|
|
echo "Auto tune confidence: " $confidence
|
|
|
|
echo $confidence
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
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 -n "Auto tune frequency: "
|
|
|
|
echo "Auto tune frequency: " $frequency
|
|
|
|
echo $frequency
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Auto tune failed, frequency unchanged"
|
|
|
|
echo "Auto tune failed, frequency unchanged"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo "If your CubeSatSim is transmitting in SSTV mode (mode 4) you should get images."
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|