|
|
|
|
@ -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'):
|
|
|
|
|
|