add 1 sec delay after aprs packet for command

fm-rx
Alan Johnston 2 years ago committed by GitHub
parent 6b69e63605
commit a880ed52d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -196,6 +196,7 @@ if __name__ == "__main__":
output(txLed, txLedOff) output(txLed, txLedOff)
system("sudo rm /home/pi/CubeSatSim/ready") system("sudo rm /home/pi/CubeSatSim/ready")
f.close() f.close()
sleep(1)
if GPIO.input(squelch) == False: if GPIO.input(squelch) == False:
print("carrier received!") print("carrier received!")
command_tx = not command_tx command_tx = not command_tx
@ -214,7 +215,9 @@ if __name__ == "__main__":
else: else:
print("Turning off transmit") print("Turning off transmit")
system("echo > command_tx False") system("echo > command_tx False")
else:
print("No carrier received!")
if (debug_mode == 1): if (debug_mode == 1):
print("Ready for next packet!") print("Ready for next packet!")

Loading…
Cancel
Save

Powered by TurnKey Linux.