From 69416a1770b21a1b62de81b29d84b7aa1616174f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 2 Mar 2026 14:23:04 -0500 Subject: [PATCH] Update pacsat.sh add l parameter --- groundstation/pacsat.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/groundstation/pacsat.sh b/groundstation/pacsat.sh index c072d488..34526a33 100755 --- a/groundstation/pacsat.sh +++ b/groundstation/pacsat.sh @@ -78,7 +78,7 @@ echo #echo echo -echo "The Pacsat Ground Station are running on this Pi using FM receiver and rpitx transmitter" +echo "The Pacsat Ground Station is running on this Pi using FM receiver or RTL-SDR" echo #cd /home/pi/Desktop/PacSatGround_0.46m_linux/ @@ -90,12 +90,21 @@ echo sudo usermod -a -G gpio pi -/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/pacsat-df.sh" +if [ ! "$1" = "l" ]; then +#/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/pacsat-df.sh" + echo "Using TXC FM transceiver" + /home/pi/CubeSatSim/groundstation/pacsat-df.sh + +else + echo "Using audio loopback" + /home/pi/CubeSatSim/groundstation/pacsat-d.sh + +fi # arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 435045 & ##arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 435045 & -echo "Don't close the direwolf window or the Pacsatsim will stop running." +# echo "Don't close the direwolf window or the Pacsatsim will stop running." cd /home/pi/Desktop/PacsatGround/