Update frequency.py changed to freq.txt

master-b3
Alan Johnston 1 month ago committed by GitHub
parent dc83a69763
commit e5530170f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -792,8 +792,8 @@ if (doppler_mode == 'off'):
tx_freq_hz = txf * 1e6
rx_freq_hz = rxf * 1e6
# check_frequency()
print("writing sim.cfg frequency to frequency.txt")
with open("/home/pi/CubeSatSim/frequency.txt", "w") as file:
print("writing sim.cfg frequency to freq.txt")
with open("/home/pi/CubeSatSim/freq.txt", "w") as file:
file.write(f"{tx_freq_hz:.0f} {rx_freq_hz:.0f}")
while True:
sleep(1)
@ -839,7 +839,7 @@ if (doppler_mode == 'sim'):
print(f"Tx Doppler shift: {tx_doppler_freq_hz:.0f}")
print(f"Rx Doppler shift: {rx_doppler_freq_hz:.0f}")
with open("/home/pi/CubeSatSim/frequency.txt", "w") as file:
with open("/home/pi/CubeSatSim/freq.txt", "w") as file:
file.write(f"{tx_doppler_freq_hz:.0f} {rx_doppler_freq_hz:.0f}")
sleep(1)

Loading…
Cancel
Save

Powered by TurnKey Linux.