Update rpitx.py reenable transmit

pull/317/head
Alan Johnston 2 years ago committed by GitHub
parent 6e323d1ec6
commit e33d9fe62c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -81,7 +81,7 @@ def increment_mode():
file.close() file.close()
print("Mode is: ") print("Mode is: ")
print(mode) print(mode)
if (mode == 'a'): if (mode == ):
mode = 'f' mode = 'f'
GPIO.output(powerPin, 0) # blink two times GPIO.output(powerPin, 0) # blink two times
sleep(0.1) sleep(0.1)
@ -149,7 +149,7 @@ def increment_mode():
GPIO.output(powerPin, 1) GPIO.output(powerPin, 1)
sleep(2.5) sleep(2.5)
else: else:
mode = 'a' mode =
GPIO.output(powerPin, 0) # blink one time GPIO.output(powerPin, 0) # blink one time
sleep(0.1) sleep(0.1)
GPIO.output(powerPin, 1) GPIO.output(powerPin, 1)
@ -392,7 +392,7 @@ if __name__ == "__main__":
command_control_check() command_control_check()
# if (mode != 'a') and (command_tx == True): # if (mode != ) and (command_tx == True):
# if (command_tx == True): # if (command_tx == True):
if (mode != 'm'): if (mode != 'm'):
# battery_saver_mode # battery_saver_mode
@ -431,8 +431,8 @@ if __name__ == "__main__":
output(pd, 1) output(pd, 1)
output(ptt, 1) output(ptt, 1)
print("AFSK") print("AFSK")
while True: # while True:
sleep(0.1) # sleep(0.1)
while True: while True:
try: try:
f = open("/home/pi/CubeSatSim/ready") f = open("/home/pi/CubeSatSim/ready")

Loading…
Cancel
Save

Powered by TurnKey Linux.