From 72a78278237b68d592133ccbe591719461212f0f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 1 Jul 2026 17:33:06 -0400 Subject: [PATCH] Update transmit.py start/stop rigctld based on config --- transmit.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/transmit.py b/transmit.py index c5fcbc48..df7afc9b 100644 --- a/transmit.py +++ b/transmit.py @@ -750,10 +750,17 @@ if __name__ == "__main__": txpl_value = "{:.0f}".format(txpl) print(txpl_value) if len(config) > 13: - if config[13] == 'y' or config[13] == 'yes': + if config[13] == 'sim': doppler_mode = True - print("Doppler frequency shift mode is configured.") - + print("Simulated Doppler frequency shift is enabled.") + if config[13] == 'rig': + doppler_mode = True + system("sudo systemctl restart rigctld") + print("rigctl Doppler frequency shift is enabled.") + else: + system("sudo systemctl stop rigctld") + else: + system("sudo systemctl stop rigctld") print(config) print # print(callsign)