From a1f8a7d0264bb291bdd9d2822db537b3e3b0f6a2 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 8 Jun 2026 14:19:00 -0400 Subject: [PATCH] Update pacsat.sh change Headphones to USB for Pi 5 --- groundstation/pacsat.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index 8ade5d3b..dda7f002 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -69,9 +69,11 @@ else txc=0 fi +card="Headphones" if [[ $(gpio -v | grep "Pi 5") ]] ; then - echo "Since Pi 5, setting TXC to LPF setting" + echo "Since Pi 5, setting TXC to LPF setting and using USB headphones" txc=$lpf + card="Device" fi FILE=/home/pi/CubeSatSim/battery_saver @@ -247,7 +249,7 @@ else else echo "3: Using FM for Receive and Transmit" - ADEVICE="ADEVICE shared_mic plughw:CARD=Headphones,DEV=0" + ADEVICE="ADEVICE shared_mic plughw:CARD=$card,DEV=0" PTT="PTT GPIOD gpiochip0 -20" fi @@ -304,7 +306,7 @@ else if [ "$txc" = "1" ] ; then echo "6: Using FM for Receive Only" - ADEVICE="ADEVICE shared_mic plughw:CARD=Headphones,DEV=0" + ADEVICE="ADEVICE shared_mic plughw:CARD=$card,DEV=0" PTT="#PTT GPIOD gpiochip0 -20" else