Update frequency.py comment back in repeater mode txrf

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

@ -701,6 +701,7 @@ iss_doppler_passes = {
] ]
} }
print("CubeSatSim v2.2 frequency.py starting...")
try: try:
tx_value = '0' tx_value = '0'
rx_value = '0' rx_value = '0'
@ -730,12 +731,14 @@ try:
if len(config) > 6: if len(config) > 6:
txf = float(config[6]) txf = float(config[6])
tx = "{:.4f}".format(txf) tx = "{:.4f}".format(txf)
# if (mode == 'e'): ######
# txrf = (txf - 290.0) # - 0.1 # Cross Band Repeater mode transmit frequency in 2m band if (mode == 'e'):
# txr = "{:.4f}".format(txrf) txrf = (txf - 290.0) # - 0.1 # Cross Band Repeater mode transmit frequency in 2m band
# print("Transmit frequency: ",txr) txr = "{:.4f}".format(txrf)
# else: print("Transmit frequency: ",txr)
# print("Transmit frequency: ",tx) else:
print("Transmit frequency: ",tx)
######
print("Transmit frequency: ",tx) print("Transmit frequency: ",tx)
if len(config) > 7: if len(config) > 7:
rxf = float(config[7]) rxf = float(config[7])
@ -797,12 +800,13 @@ if (doppler_mode == 'off'):
if (doppler_mode == 'sim'): if (doppler_mode == 'sim'):
print("Sim mode") print("Sim mode")
#####
# if (mode == 'e'): if (mode == 'e'):
# tx_doppler_start_hz = txrf * 1e6 tx_doppler_start_hz = txrf * 1e6
# else: else:
# tx_doppler_start_hz = txf * 1e6 tx_doppler_start_hz = txf * 1e6
tx_doppler_start_hz = txf * 1e6 #####
# tx_doppler_start_hz = txf * 1e6
tx_doppler_shift_hz = 0 tx_doppler_shift_hz = 0
print(f"Tx center frequency: {tx_doppler_start_hz}") print(f"Tx center frequency: {tx_doppler_start_hz}")
rx_doppler_start_hz = rxf * 1e6 rx_doppler_start_hz = rxf * 1e6

Loading…
Cancel
Save

Powered by TurnKey Linux.