|
|
|
@ -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,6 +215,8 @@ 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!")
|
|
|
|
|