Update aprs_in.py add immediate LED and tx stop

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent 145b5b363b
commit f91318b661
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,8 +1,11 @@
import sys
from os import system
import RPi.GPIO as GPIO
from RPi.GPIO import output
if __name__ == "__main__":
powerPin = 16
txLed = 27
change_mode = False
debug_mode = False
if (len(sys.argv)) > 1:
@ -38,6 +41,11 @@ if __name__ == "__main__":
mode = 'm'
change_mode = True
if (debug_mode == False) and (change_mode == True):
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.output(txLed, 0)
GPIO.output(powerPin, 0)
system("sudo systemctl stop rpitx")
try:
file = open("/home/pi/CubeSatSim/command_count.txt", "r")
string = file.read()

Loading…
Cancel
Save

Powered by TurnKey Linux.