From 2e66c5e80410dc08e9c0692b41d0ff8b4373e3d6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 14 Mar 2026 11:52:14 -0400 Subject: [PATCH] Update transmit.py add start/stop rpitx --- transmit.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/transmit.py b/transmit.py index c431b015..f68fc3da 100644 --- a/transmit.py +++ b/transmit.py @@ -554,7 +554,8 @@ if __name__ == "__main__": # system("sudo systemctl restart pacsatsim") output(txLed, 0) print("0") - + rpitx = "arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434900 &" + stop_rpitx = "sudo killall -9 rpitx" while (True): if (txc): sleep(0.1) @@ -567,8 +568,19 @@ if __name__ == "__main__": output(txLed, 0) print("0") else: - sleep(10) - else: +# sleep(0.1) + while (input(17) == 0): + sleep(0.05) + system(rpitx) +# print("1") + while (input(17) -= 1): + sleep(0.05) + system(stop_rpitx) +# print("0") + +# sleep(10) + + else: print("Transmit APRS Commands") system("sudo systemctl stop command") # while True: