Update pacsat.sh add safe and fix vox and other modes

master-b-p-s
Alan Johnston 1 week ago committed by GitHub
parent 16e7882978
commit 000bf1f9e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,15 +4,25 @@
loopback=0
vox=0
safe=0
card=0
pwm=0
if [ "$1" = "l" ] ; then
loopback=1
echo "PacSat Ground Station with Loopback"
elif [ "$1" = "v" ] ; then
vox=1
echo "PacSat Ground Station with Soundcard (VOX)"
elif [ "$1" = "c" ] ; then
card=1
else
pwm=1
fi
@ -139,40 +149,34 @@ echo
sudo usermod -a -G gpio pi
if [ "$loopback" = "1" ]; then
#/usr/bin/x-terminal-emulator --geometry=120x40 -e "/home/pi/CubeSatSim/groundstation/pacsat-df.sh"
echo "Using Audio Loopback"
# /home/pi/CubeSatSim/groundstation/pacsat-d.sh &
# direwolf -P+ -D1 -qd -dp -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat-loopback.conf -t 0
ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1"
PTT="PTT GPIOD gpiochip0 17"
elif [ "$vox" = "1" ]; then
elif [ "$safe" = "1" ] ; then
echo "Using Soundcard Audio TX RX (VOX)"
/home/pi/CubeSatSim/groundstation/pacsat-dj.sh &
else
echo "Safe mode - battery saver"
ADEVICE="ADEVICE shared_mic plughw:CARD=Loopback,DEV=0"
PTT="PTT GPIOD gpiochip0 17"
echo "Using TXC FM Transceiver"
pwm=1
# /home/pi/CubeSatSim/groundstation/pacsat-df.sh &
elif [ "$vox" = "1" ]; then
if [ "$pwm" = "1" ] ; then
echo "Using Soundcard Audio TX and RX (VOX, no PTT)"
ADEVICE="ADEVICE plughw:CARD=Device,DEV=0"
PTT="PTT GPIOD gpiochip0 17"
# direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-pwm.conf -t 0 &
elif [ "$pwm" = "1" ] ; then
echo "FM TXC using Soundcard input (JP13), PWM output"
ADEVICE="ADEVICE shared_mic plughw:CARD=Headphones,DEV=0"
PTT="PTT GPIOD gpiochip0 -20"
else
direwolf -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 &
else
fi
echo "FM TXC using Soundcard input (JP13) and output (JP14)"
ADEVICE="ADEVICE shared_mic plughw:CARD=Device,DEV=0"
PTT="PTT GPIOD gpiochip0 -20"
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.