From d9b03237699cdec8ec7bb3e76f72ed26d4fa97cc Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 14 Nov 2023 16:44:57 -0500 Subject: [PATCH] Update rpitx.py fix sstv --- rpitx.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rpitx.py b/rpitx.py index 1fd1996c..a54a479b 100644 --- a/rpitx.py +++ b/rpitx.py @@ -512,12 +512,14 @@ if __name__ == "__main__": if (command_tx == True): print ("Sending SSTV image") output(txLed, txLedOn) - output(pd, 1) - output (ptt, 0) battery_saver_check() if (txc): + output(pd, 1) + output (ptt, 0) system("aplay -D hw:CARD=Headphones,DEV=0 /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg.wav") + output (ptt, 1) + output(pd, 0) else: if (debug_mode == 1): system("cat /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg.wav | csdr convert_i16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434.9e3") @@ -525,8 +527,7 @@ if __name__ == "__main__": system("cat /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg.wav | csdr convert_i16_f | csdr gain_ff 14000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434.9e3 > /dev/null 2>&1") output(txLed, txLedOff) - output (ptt, 1) - output(pd, 0) + # sleep(1) except: print("image 2 did not load - copy from CubeSatSim/sstv directory")