|
|
|
|
@ -24,8 +24,6 @@ else:
|
|
|
|
|
txLedOn = 1
|
|
|
|
|
txLedOff = 0
|
|
|
|
|
|
|
|
|
|
time.sleep(15) // delay to cover cubesatsim initialization time
|
|
|
|
|
|
|
|
|
|
GPIO.setup(txLed, GPIO.OUT)
|
|
|
|
|
print(txLedOn)
|
|
|
|
|
print(txLed)
|
|
|
|
|
@ -55,7 +53,10 @@ if __name__ == "__main__":
|
|
|
|
|
if (len(sys.argv)) > 1:
|
|
|
|
|
# print("There are arguments!")
|
|
|
|
|
if (('a' == sys.argv[1]) or ('afsk' in sys.argv[1])):
|
|
|
|
|
print("AFSK")
|
|
|
|
|
print("AFSK")
|
|
|
|
|
for x in range(5):
|
|
|
|
|
time.sleep(5);
|
|
|
|
|
system("sudo gen_packets -o /home/pi/CubeSatSim/telem.wav /home/pi/CubeSatSim/t.txt -r 48000 > /dev/null 2>&1 && cat /home/pi/CubeSatSim/telem.wav | csdr convert_i16_f | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 | sudo /home/pi/rpitx/rpitx -i- -m RF -f 434.9e3 > /dev/null 2>&1")
|
|
|
|
|
while True:
|
|
|
|
|
try:
|
|
|
|
|
f = open("/home/pi/CubeSatSim/ready")
|
|
|
|
|
|