Update frequency.py add print if frequency out of range

master-bf-test
Alan Johnston 2 weeks ago committed by GitHub
parent b7ac72c715
commit 2212db8bb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,20 +11,29 @@ def check_frequency():
global tx_doppler_freq_hz global tx_doppler_freq_hz
global rx_doppler_freq_hz global rx_doppler_freq_hz
tx_OK = False
rx_OK = False
if tx_doppler_freq_hz > 450000000: if tx_doppler_freq_hz > 450000000:
tx_doppler_freq_hz = 435200000 tx_doppler_freq_hz = 435200000
elif (tx_doppler_freq_hz < 420000000) and (tx_doppler_freq_hz > 148000000): elif (tx_doppler_freq_hz < 420000000) and (tx_doppler_freq_hz > 148000000):
tx_doppler_freq_hz = 434700000 tx_doppler_freq_hz = 434700000
if (tx_doppler_freq_hz < 144000000): elif (tx_doppler_freq_hz < 144000000):
tx_doppler_freq_hz = 434600000 tx_doppler_freq_hz = 434600000
else:
tx_OK = True
if rx_doppler_freq_hz > 450000000: if rx_doppler_freq_hz > 450000000:
rx_doppler_freq_hz = 435200000 rx_doppler_freq_hz = 435200000
elif (rx_doppler_freq_hz < 420000000) and (rx_doppler_freq_hz > 148000000): elif (rx_doppler_freq_hz < 420000000) and (rx_doppler_freq_hz > 148000000):
rx_doppler_freq_hz = 434700000 rx_doppler_freq_hz = 434700000
if (rx_doppler_freq_hz < 144000000): elif (rx_doppler_freq_hz < 144000000):
rx_doppler_freq_hz = 434600000 rx_doppler_freq_hz = 434600000
else:
rx_OK == True
if (tx_OK != True) or (rx_OK != True):
print("Error - frequency out of range!")
iss_doppler_passes = { iss_doppler_passes = {
88: [ 88: [

Loading…
Cancel
Save

Powered by TurnKey Linux.