Update rpitx.py use beacon_off to set command_tx

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent 55af0480e0
commit 70e4aa21c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -284,16 +284,13 @@ if __name__ == "__main__":
print(mode)
try:
file = open("/home/pi/CubeSatSim/command_tx")
char = file.read(1)
if (char == 'T'):
command_tx = True
else:
command_tx = False
file = open("/home/pi/CubeSatSim/beacon_off")
file.close()
command_tx = False
except:
command_tx = True
if (debug_mode == 1):
print("Can't open command_tx file, defaulting to True")
print("Can't open beacon_off file, defaulting to False")
print("Command_tx: ")
print(command_tx)

Loading…
Cancel
Save

Powered by TurnKey Linux.