From f311f1f076857763f2d7b0d74215c13a879da77a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 4 Mar 2024 10:52:05 -0500 Subject: [PATCH] Update rpitx.py move cw pd and put --- rpitx.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/rpitx.py b/rpitx.py index dbb7d758..15782c3d 100644 --- a/rpitx.py +++ b/rpitx.py @@ -490,22 +490,23 @@ if __name__ == "__main__": system(command) ## chan = chan + 1 if (command_tx == True): - output(txLed, txLedOn) - output (pd, 1) - sleep(0.3) - output (ptt, 0) + output(txLed, txLedOn) 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) + 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") output(txLed, txLedOff) - output (ptt, 1) + command_control_check() f.close() sleep(5)