From 12aea45e523386322f6ca68fbeca4d0b2bf213af Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 15 Aug 2026 13:34:55 -0400 Subject: [PATCH] Update transmit.py turn off gpsd for any doppler mode --- transmit.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/transmit.py b/transmit.py index d7ebba65..aa9fb075 100644 --- a/transmit.py +++ b/transmit.py @@ -848,6 +848,12 @@ if __name__ == "__main__": if (doppler_mode == True): + if (gpsd_status == "active"): + gpsd_status = "inactive" + print("Turning off gpsd since Doppler mode") + system("sudo systemctl stop gpsd.socket") + system("sudo systemctl stop gpsd") + # if (command_tx == True) and (skip == False): # cw_transmit_fm("QSY", tx) @@ -1039,11 +1045,6 @@ if __name__ == "__main__": elif (mode == 'm'): # system("touch /home/pi/CubeSatSim/cwready") print("CW") - if (doppler_mode) and (gpsd_status == "active"): - gpsd_status = "inactive" - print("Turning off gpsd since Doppler mode") - system("sudo systemctl stop gpsd.socket") - system("sudo systemctl stop gpsd") while True: # command_control_check() output (pd, 1)