Update frequency.py change to MHz

master-be
Alan Johnston 2 weeks ago committed by GitHub
parent bdd58ad9eb
commit 5a3dee5ad6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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}")

Loading…
Cancel
Save

Powered by TurnKey Linux.