add !command_tx to stop pacsatsim

master-b-p-s
Alan Johnston 2 weeks ago committed by GitHub
parent 71321b0c92
commit a90e87ac06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -324,8 +324,6 @@ if __name__ == "__main__":
print("Can't open .mode file, defaulting to FSK")
print("Mode is: ")
print(mode)
if ( mode != "p"):
system("sudo systemctl stop pacsatsim")
try:
file = open("/home/pi/CubeSatSim/beacon_off")
@ -338,6 +336,9 @@ if __name__ == "__main__":
print("Command_tx: ")
print(command_tx)
if (mode != "p") || (!command_tx):
system("sudo systemctl stop pacsatsim")
try:
file = open("/home/pi/CubeSatSim/command_count.txt", "r")
string = file.read()

Loading…
Cancel
Save

Powered by TurnKey Linux.