Update pacsat.sh fixing rtl, not sure of other modes

pull/431/head
Alan Johnston 4 months ago committed by GitHub
parent 56fdd00c82
commit 1b0b2daac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,7 +16,16 @@ elif [ "$1" = "v" ] ; then
vox=1 vox=1
elif [ "$1" = "c" ] ; then elif [ "$1" = "c" ] ; then
card=1 card=1
#else
# pwm=1
#fi
elif [[ $(lsusb | grep "RTL") ]] ; then
echo "RTL-SDR detected"
rtl=1
else else
echo "No RTL-SDR detected"
rtl=0
pwm=1 pwm=1
fi fi
@ -45,14 +54,6 @@ else
echo "TXC not present" echo "TXC not present"
txc=0 txc=0
if [[ $(lsusb | grep "RTL") ]] ; then
echo "RTL-SDR detected"
rtl=1
else
echo "No RTL-SDR detected"
rtl=0
fi
fi fi
FILE=/home/pi/CubeSatSim/battery_saver FILE=/home/pi/CubeSatSim/battery_saver
@ -223,7 +224,7 @@ if [ "$txc" = "0" ] ; then
fi fi
if [ "$loopback" = "1" ] || [ "$txc" = "0" ] ; then if [ "$loopback" = "1" ] ; then
echo "Using Audio Loopback" echo "Using Audio Loopback"
ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1" ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1"
@ -256,7 +257,7 @@ elif [ "$vox" = "1" ] ; then
sleep 5 sleep 5
fi fi
elif [ "$pwm" = "1" ] ; then elif [ "$pwm" = "1" ] && [ "$soundcard" = "1" ] ; then
ADEVICE="ADEVICE shared_mic plughw:CARD=Headphones,DEV=0" ADEVICE="ADEVICE shared_mic plughw:CARD=Headphones,DEV=0"
PTT="PTT GPIOD gpiochip0 -20" PTT="PTT GPIOD gpiochip0 -20"
@ -271,6 +272,12 @@ elif [ "$pwm" = "1" ] ; then
echo "FM TXC using Soundcard input (JP13), PWM output" echo "FM TXC using Soundcard input (JP13), PWM output"
fi fi
elif [ "$txc" = "0" ] ; then
echo "Using RTL-SDR Audio Loopback"
ADEVICE="ADEVICE plughw:CARD=Loopback,DEV=1"
PTT="#PTT GPIOD gpiochip0 1"
else else
echo "FM TXC using Soundcard input (JP13) and output (JP14)" echo "FM TXC using Soundcard input (JP13) and output (JP14)"

Loading…
Cancel
Save

Powered by TurnKey Linux.