From 1bd13fdd3f0e30325fe95ab177bb2dc7a45073f5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 18 Feb 2026 23:01:23 -0500 Subject: [PATCH] Update program_fm.py change to e6 --- groundstation/program_fm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/groundstation/program_fm.py b/groundstation/program_fm.py index f68056b3..c64c512a 100644 --- a/groundstation/program_fm.py +++ b/groundstation/program_fm.py @@ -4,8 +4,8 @@ import sys from time import sleep if __name__ == "__main__": - txf = 434.9 - rxf = 435 + txf = 434.9e6 + rxf = 435e6 if (len(sys.argv)) > 1: print("There are arguments!") txf = float(sys.argv[1]) @@ -13,8 +13,8 @@ if __name__ == "__main__": print("There are more arguments!") rxf = float(sys.argv[2]) print("Programming FM module!\n") - tx = "{:.4f}".format(txf/1000000.0) - rx = "{:.4f}".format(rxf/1000000.0) + tx = "{:.4f}".format(txf/e6) + rx = "{:.4f}".format(rxf/e6) print(f"Transmit frequency: {tx}") print(f"Receive frequency: {rx}")