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")
no_command = False
f.close() f.close()
setup(squelch, "up") ## pull up in case pin is not connected # setup(squelch, "up") ## pull up in case pin is not connected
if input(squelch) == False: # if input(squelch) == False:
print("squelch not set correctly, no command input!") # print("squelch not set correctly, no command input!")
else: # else:
if (mode != 'n') and (mode != 'x'): # if (mode != 'n') and (mode != 'x'):
print("command and control is activated") # print("command and control is activated")
no_command = False # no_command = False
system("sudo systemctl start command") # system("sudo systemctl start command")
else: # else:
print("Command and control not activated since Transmit Commands mode") # 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 # 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.