Update transmit.py start and stop pacsatsim.service

pacsat-v2.2-tlm
Alan Johnston 2 months ago committed by GitHub
parent 9302ac01b9
commit 65cd80f7f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -245,6 +245,7 @@ if __name__ == "__main__":
print("Can't open .mode file, defaulting to FSK") print("Can't open .mode file, defaulting to FSK")
print("Mode is: ") print("Mode is: ")
print(mode) print(mode)
system("sudo systemctl stop pacsatsim")
try: try:
file = open("/home/pi/CubeSatSim/beacon_off") file = open("/home/pi/CubeSatSim/beacon_off")
@ -428,6 +429,7 @@ if __name__ == "__main__":
print("Pacsat Ground Station") print("Pacsat Ground Station")
else: else:
print("Pacsat") print("Pacsat")
system("sudo systemctl restart pacsatsim")
# txPin = 27 # txPin = 27
pttPin = 20 pttPin = 20

Loading…
Cancel
Save

Powered by TurnKey Linux.