removed sstv first stored image

bp-new
alanbjohnston 5 years ago committed by GitHub
parent 1bdf8be7bf
commit 50a0821cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,20 +175,20 @@ if __name__ == "__main__":
# while 1: # while 1:
output(txLed, txLedOff) output(txLed, txLedOff)
if (camera_present == 1): if (camera_present == 1):
try: # try:
file = open("/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg") # file = open("/home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg")
print("First SSTV stored image detected") # 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") # system("/home/pi/PiSSTVpp/pisstvpp -r 48000 -p s2 /home/pi/CubeSatSim/sstv_image_2_320_x_256.jpg")
print ("Sending SSTV image") # print ("Sending SSTV image")
output(txLed, txLedOn) # output(txLed, txLedOn)
if (debug_mode == 1): # 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") # 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: # 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") # 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(txLed, txLedOff)
# sleep(1) # sleep(1)
except: # except:
print("image 2 did not load - copy from CubeSatSim/sstv directory") # print("image 2 did not load - copy from CubeSatSim/sstv directory")
while 1: while 1:
system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1") system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1")
print("Photo taken") print("Photo taken")

Loading…
Cancel
Save

Powered by TurnKey Linux.