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