added APRS rpitx based on file ready

pull/85/head
alanbjohnston 5 years ago committed by GitHub
parent d51546ca2a
commit 91a09ab758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,13 @@ if __name__ == "__main__":
if (('a' == sys.argv[1]) or ('afsk' in sys.argv[1])):
print("AFSK")
while True:
time.sleep(5)
try:
f = open("ready")
os.system("gen_packets -o telem.wav t.txt -r 48000 > /dev/null 2>&1 && cat 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")
os.system("rm ready")
time.sleep(0.5)
except:
time.sleep(0.5)
elif (('s' == sys.argv[1]) or ('sstv' in sys.argv[1])):
print("SSTV")
GPIO.output(txLed, txLedOn);

Loading…
Cancel
Save

Powered by TurnKey Linux.