add command_tx to aprs

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

@ -176,6 +176,7 @@ if __name__ == "__main__":
print("Packet ready!")
system("gen_packets -o /home/pi/CubeSatSim/telem.wav /home/pi/CubeSatSim/t.txt -r 48000 > /dev/null 2>&1")
system("cat /home/pi/CubeSatSim/t.txt")
if (command_tx == True):
output(txLed, txLedOn)
# output(pd, 1)
output (ptt, 0)
@ -197,7 +198,19 @@ if __name__ == "__main__":
system("sudo rm /home/pi/CubeSatSim/ready")
if (debug_mode == 1):
print("Ready for next packet!")
sleep(0.5)
if GPIO.input(squelch) == False:
print("carrier received!")
command_tx = not command_tx
print(command_tx)
if (command_tx == True):
print("Turning on transmit")
system("echo > command_tx True")
else:
if (command_tx == True):
print("Turning off transmit")
system("echo > command_tx False")
except:
sleep(0.5)
elif (mode == 'm'):

Loading…
Cancel
Save

Powered by TurnKey Linux.