From bf572cc9bccba0cee2e5d46ccb8c249506b95349 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 1 Dec 2025 21:55:25 -0500 Subject: [PATCH] Update pacsat-df.sh add pwm variable --- groundstation/pacsat-df.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/groundstation/pacsat-df.sh b/groundstation/pacsat-df.sh index 2c0af411..99ffc988 100755 --- a/groundstation/pacsat-df.sh +++ b/groundstation/pacsat-df.sh @@ -1,10 +1,21 @@ #!/bin/bash +pwm=1 + sudo modprobe snd-aloop #gpio -g mode 20 out #gpio -g write 20 1 -direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 +#direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 + +if [ "$pwm" = "1" ] ; then + + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-pwm.conf -t 0 + +else + direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 + +fi