Update pacsat.sh remove frequency comments

pacsit-loop
Alan Johnston 1 year ago committed by GitHub
parent 9ca2860de8
commit e574937c7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -40,44 +40,27 @@ echo
sudo systemctl restart pacsatsim
value=`cat /home/pi/CubeSatSim/sim.cfg`
echo "$value" > /dev/null
set -- $value
echo "Receive frequency is $8 MHz"
echo "Transmit frequency is $7 MHz"
echo
echo "To change, quit and type CubeSatSim/config -F"
echo
#value=`cat /home/pi/CubeSatSim/sim.cfg`
#echo "$value" > /dev/null
#set -- $value
#echo "Receive frequency is $8 MHz"
#echo "Transmit frequency is $7 MHz"
#echo
#echo "To change, quit and type CubeSatSim/config -F"
#echo
frequency="$8e6"
#frequency="$8e6"
#echo "Note that the 'Tuned to' frequency will be different from the chosen frequency due to the way SDRs work."
#echo
if [[ $(arecord -l | grep "USB Audio Device") ]] ; then
echo -e "Direwolf using USB Sound Card (FM Transceiver) on $frequency Hz"
direwolf -P+ -D1 -qd -r 48000 -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-fm-pacsat-jp14.conf -t 0 &
else
echo -e "Direwolf using RTL-SDR on $frequency Hz"
direwolf -P+ -D3 -r 48000 -qd -c /home/pi/CubeSatSim/groundstation/direwolf/direwolf-pacsat.conf -t 0 &
sleep 5
value=`aplay -l | grep "Loopback"`
echo "$value" > /dev/null
set -- $value
#rtl_fm -M fm -f 144.39M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1
rtl_fm -M fm -f $frequency -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1 &
echo
echo "The Pacsat and Pacsat Ground Station are running on this Pi using audio loopback."
echo
fi
cd /home/pi/Desktop/PacSatGround_0.46m_linux/

Loading…
Cancel
Save

Powered by TurnKey Linux.