added print

pull/88/head
alanbjohnston 5 years ago committed by GitHub
parent ab569afb38
commit 0359ba3311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,12 +56,17 @@ if __name__ == "__main__":
print("AFSK")
while True:
try:
print("Opening file")
f = open("/home/pi/CubeSatSim/ready")
print("rpitx")
os.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")
print("closing")
close(f)
print("deleting")
os.system("sudo rm ready")
time.sleep(0.5)
except:
print("Exception sleeping")
time.sleep(0.5)
elif (('s' == sys.argv[1]) or ('sstv' in sys.argv[1])):
print("SSTV")

Loading…
Cancel
Save

Powered by TurnKey Linux.