sr-frs
alanbjohnston 3 years ago committed by GitHub
parent 887a883049
commit b9153bedf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,18 +101,18 @@ if __name__ == "__main__":
sleep(1)
if mode != APRS:
system("echo 'hi hi de " + callsign + "' > id.txt && gen_packets -M 20 /home/pi/CubeSatSim/id.txt -o /home/pi/CubeSatSim/morse.wav -r 48000 > /dev/null 2>&1")
system("echo 'hi hi de " + callsign + "' > id.txt && gen_packets -M 20 /home/pi/CubeSatSim/id.txt -o /home/pi/CubeSatSim/morse.wav -r 48000 > /dev/null 2>&1")
if (mode != 'a'):
output (ptt, 0)
output(txLed, txLedOn)
sleep(0.2)
sleep(0.1)
# if (debug_mode == 1):
# system("echo 'hi hi de " + callsign + "' > id.txt && gen_packets -M 20 /home/pi/CubeSatSim/id.txt -o /home/pi/CubeSatSim/morse.wav -r 48000 > /dev/null 2>&1 && cat /home/pi/CubeSatSim/morse.wav | csdr convert_i16_f | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 | sudo /home/pi/rpitx/rpitx -i- -m RF -f 434.9e3")
# else:
# system("echo 'hi hi de " + callsign + "' > id.txt && gen_packets -M 20 /home/pi/CubeSatSim/id.txt -o /home/pi/CubeSatSim/morse.wav -r 48000 > /dev/null 2>&1 && cat /home/pi/CubeSatSim/morse.wav | csdr convert_i16_f | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 | sudo /home/pi/rpitx/rpitx -i- -m RF -f 434.9e3 > /dev/null 2>&1")
system("aplay /home/pi/CubeSatSim/morse.wav")
sleep(0.2)
sleep(0.1)
output(txLed, txLedOff)
output (ptt, 1)
sleep(1)

Loading…
Cancel
Save

Powered by TurnKey Linux.