pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent 3b680aaa92
commit f59c0687b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -99,6 +99,20 @@ if __name__ == "__main__":
time.sleep(0.5) time.sleep(0.5)
except: except:
time.sleep(0.5) time.sleep(0.5)
elif (mode == 'c'):
print("CW")
# time.sleep(4)
while True:
try:
f = open("/home/pi/CubeSatSim/cwready")
GPIO.output(txLed, txLedOn)
system("sudo gen_packets -M 20 -o /home/pi/CubeSatSim/morse.wav /home/pi/CubeSatSim/cw.txt -r 48000 > /dev/null 2>&1 && cat /home/pi/CubeSatSim/morse.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")
GPIO.output(txLed, txLedOff)
f.close()
system("sudo rm cwready")
time.sleep(1)
except:
time.sleep(1)
elif (mode == 's'): elif (mode == 's'):
print("SSTV") print("SSTV")
try: try:

Loading…
Cancel
Save

Powered by TurnKey Linux.