From 37ffbaf4e60f47ef4e32d4401b1d70229e852717 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 25 May 2026 13:25:35 -0400 Subject: [PATCH] Update config offer to change frequency when change to PacSat Ground mode --- config | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config b/config index d2106a8f..36379864 100755 --- a/config +++ b/config @@ -1835,6 +1835,25 @@ elif [ "$1" = "-I" ]; then reboot=1 sudo echo "P" > /home/pi/CubeSatSim/.mode + + value=`cat /home/pi/CubeSatSim/sim.cfg` + echo "$value" > /dev/null + set -- $value + + if [ "${7}" = "434.9" ] && [ "${8}" = "435" ]; then + echo "The default transmit frequency of 434.9 MHz is set" + echo + echo "Do you want to change it (for example to 435 MHz)?" + + read input + echo + + if [ "$input" = "y" ] || [ "$input" = "yes" ] ; then + /home/pi/CubeSatSim/config -F n + fi + fi + + # if [ "$1" == "f" ] || [ "$1" == "b" ] || [ "$1" == "e" ] ; then # FILE=/home/pi/CubeSatSim/battery_saver # if [ -f "$FILE" ]; then