From 2cd50f587aacb7e4848031e863202e7de8d38b40 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 30 Jul 2020 12:15:14 -0400 Subject: [PATCH] added tx LED on during CW ID --- rpitx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpitx.py b/rpitx.py index 5086b07b..76abae2f 100644 --- a/rpitx.py +++ b/rpitx.py @@ -31,7 +31,9 @@ file = open("/home/pi/CubeSatSim/sim.cfg") callsign = file.readline().split(" ")[0] print(callsign) +GPIO.output(txLed, txLedOn); os.system("echo 'de " + callsign + "' > id.txt && gen_packets -M 20 id.txt -o morse.wav -r 48000 > /dev/null 2>&1 && cat 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") +GPIO.output(txLed, txLedOff); time.sleep(2)