Update rpitx.py move cw pd and put

beta-cc-safe
Alan Johnston 2 years ago committed by GitHub
parent 04b5b9ca78
commit f311f1f076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -491,21 +491,22 @@ if __name__ == "__main__":
## chan = chan + 1
if (command_tx == True):
output(txLed, txLedOn)
output (pd, 1)
sleep(0.3)
output (ptt, 0)
if (txc):
output (pd, 1)
sleep(0.3)
output (ptt, 0)
system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/morse.wav")
sleep(0.1)
output (ptt, 1)
# output (pd, 0)
else:
if (debug_mode == 1):
system("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 " + tx + "e3")
else:
system("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 " + tx + "e3 > /dev/null 2>&1")
sleep(0.1)
output(txLed, txLedOff)
output (ptt, 1)
command_control_check()
f.close()
sleep(5)

Loading…
Cancel
Save

Powered by TurnKey Linux.