From 5a3dee5ad6947213c6216b4f27e7ee118ae66090 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 5 Jul 2026 10:38:15 -0400 Subject: [PATCH] Update frequency.py change to MHz --- frequency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frequency.py b/frequency.py index b5637557..fdb96b88 100644 --- a/frequency.py +++ b/frequency.py @@ -363,8 +363,8 @@ except Exception as e: print(f"An error occurred: {e}") if (doppler_mode == 'off'): - tx_freq_hz = txf * 1000 - rx_freq_hz = rxf * 1000 + tx_freq_hz = txf * 1e6 + rx_freq_hz = rxf * 1e6 print("writing sim.cfg frequency to frequency.txt") with open("/home/pi/CubeSatSim/frequency.txt", "w") as file: file.write(f"{tx_freq_hz:.0f} {rx_freq_hz:.0f}")