Update transmit.py use tee instead of echo

master-bh
Alan Johnston 21 hours ago committed by GitHub
parent 88f5ffbcd1
commit 08404169ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1192,7 +1192,9 @@ if __name__ == "__main__":
output (ptt, 1)
# output(pd, 0)
else:
system("echo 'AMSAT-11>APCSS:010101/hi hi ' >> t.txt")
# system("echo 'AMSAT-11>APCSS:010101/hi hi ' >> t.txt")
system("echo 'AMSAT-11>APCSS:010101/hi hi ' | sudo tee -a /home/pi/CubeSatSim/t.txt")
if (debug_mode == 1):
system("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 " + tx + "e3")
else:

Loading…
Cancel
Save

Powered by TurnKey Linux.