Update transmit.py remove C2C squelch check since it won't work in PacSat mode

master-b-p
Alan Johnston 2 months ago committed by GitHub
parent a895127d82
commit b09c852a07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -436,18 +436,19 @@ if __name__ == "__main__":
no_command = True no_command = True
try: try:
f = open("/home/pi/CubeSatSim/command_control", "r") f = open("/home/pi/CubeSatSim/command_control", "r")
f.close()
setup(squelch, "up") ## pull up in case pin is not connected
if input(squelch) == False:
print("squelch not set correctly, no command input!")
else:
if (mode != 'n') and (mode != 'x'):
print("command and control is activated")
no_command = False no_command = False
system("sudo systemctl start command") f.close()
else: # setup(squelch, "up") ## pull up in case pin is not connected
print("Command and control not activated since Transmit Commands mode") # if input(squelch) == False:
txc = True # Transmit commands only works with FM transceiver, so bypass Battery Saver if activated # print("squelch not set correctly, no command input!")
# else:
# if (mode != 'n') and (mode != 'x'):
# print("command and control is activated")
# no_command = False
# system("sudo systemctl start command")
# else:
# print("Command and control not activated since Transmit Commands mode")
# txc = True # Transmit commands only works with FM transceiver, so bypass Battery Saver if activated
except: except:
print("command and control not activated") print("command and control not activated")

Loading…
Cancel
Save

Powered by TurnKey Linux.