|
|
|
@ -237,24 +237,24 @@ def program_fm(rx, tx, rxpl_value, sq, txpl_value):
|
|
|
|
if (txf > 144.0) and (txf < 148.0):
|
|
|
|
if (txf > 144.0) and (txf < 148.0):
|
|
|
|
two_meter_rpitx = True
|
|
|
|
two_meter_rpitx = True
|
|
|
|
print("Transmitting in 2m band using rptix")
|
|
|
|
print("Transmitting in 2m band using rptix")
|
|
|
|
if (txc):
|
|
|
|
# if (txc):
|
|
|
|
restore_txc = True
|
|
|
|
# restore_txc = True
|
|
|
|
print("Restore FM with 70cm band")
|
|
|
|
# print("Restore FM with 70cm band")
|
|
|
|
txc = False
|
|
|
|
txc = False
|
|
|
|
tx = "434.9000"
|
|
|
|
tx = "434.9000"
|
|
|
|
elif (two_meter_rpitx):
|
|
|
|
# elif (two_meter_rpitx):
|
|
|
|
two_meter_rpitx = False
|
|
|
|
# two_meter_rpitx = False
|
|
|
|
print("Stop transmitting in 2m bacnd using rptix")
|
|
|
|
# print("Stop transmitting in 2m bacnd using rptix")
|
|
|
|
if (restore_txc):
|
|
|
|
# if (restore_txc):
|
|
|
|
txc = True
|
|
|
|
# txc = True
|
|
|
|
restore_txc = False
|
|
|
|
# restore_txc = False
|
|
|
|
print("Restoring FM with 70cm band")
|
|
|
|
# print("Restoring FM with 70cm band")
|
|
|
|
print("Rebooting")
|
|
|
|
# print("Rebooting")
|
|
|
|
system("sudo reboot now")
|
|
|
|
# system("sudo reboot now")
|
|
|
|
|
|
|
|
|
|
|
|
if (txf > 450.0) or (txf < 420.0) and not two_meter_rpitx:
|
|
|
|
if (txf > 450.0) or ((txf < 420.0) and (txf > 148.0)) or (txf < 144.0) :
|
|
|
|
tx = "434.9000"
|
|
|
|
tx = "434.9000"
|
|
|
|
print("Transmit frequency out of 70cm band")
|
|
|
|
print("Transmit frequency out of amateur bands")
|
|
|
|
|
|
|
|
|
|
|
|
if (rxf > 450.0) or (rxf < 420.0):
|
|
|
|
if (rxf > 450.0) or (rxf < 420.0):
|
|
|
|
rx = "435.0000"
|
|
|
|
rx = "435.0000"
|
|
|
|
|