From f1e340b06f7cfe2801a9b4d76c7ef3fe9d94c1f3 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 3 Jun 2026 17:20:09 -0400 Subject: [PATCH] Update pacsat.sh change safe to rpitx and add v1 case --- groundstation/pacsat.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 31512803..f66bc709 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -19,7 +19,7 @@ sudo pkill -f "/home/pi/CubeSatSim/groundstation/direwolf-pacsat-tmp.conf" loopback=0 vox=0 -#safe=0 +#rpitx=0 #card=0 #pwm=0 @@ -71,9 +71,11 @@ fi FILE=/home/pi/CubeSatSim/battery_saver if [ -f "$FILE" ]; then - safe=1 -else - safe=0 + rpitx=1 +elif [ "$txc" = "0" ] && [ "$lpf" = "1" ]; then + rpitx=1 +else + rpitx=0 fi @@ -231,7 +233,7 @@ else if [ "$txc" = "1" ] ; then - if [ "$safe" = "1" ]; then + if [ "$rpitx" = "1" ]; then echo "2: Using FM for Receive and rpitx for Transmit" ADEVICE="ADEVICE shared_mic plughw:CARD=Loopback,DEV=0"