From 50a0821cb30e07c1c14c683f685b24a0e23d3f6c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 12 Jul 2021 14:58:37 -0400 Subject: [PATCH] removed sstv first stored image --- rpitx.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/rpitx.py b/rpitx.py index ec4c1e03..047d05dc 100644 --- a/rpitx.py +++ b/rpitx.py @@ -175,20 +175,20 @@ if __name__ == "__main__": # while 1: output(txLed, txLedOff) if (camera_present == 1): - try: - file = open("/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg") - print("First SSTV stored image detected") - system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg") - print ("Sending SSTV image") - output(txLed, txLedOn) - 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") - else: - 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) +# try: +# file = open("/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg") +# print("First SSTV stored image detected") +# system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg") +# print ("Sending SSTV image") +# output(txLed, txLedOn) +# 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") +# else: +# 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) # sleep(1) - except: - print("image 2 did not load - copy from CubeSatSim/sstv directory") +# except: +# print("image 2 did not load - copy from CubeSatSim/sstv directory") while 1: system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") print("Photo taken")