|
|
|
@ -788,7 +788,7 @@ if __name__ == "__main__":
|
|
|
|
if (image_present == False):
|
|
|
|
if (image_present == False):
|
|
|
|
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")
|
|
|
|
system("/home/pi/ssdv/ssdv -e -c CALL -i " + str(image_index) + " -q 3 -J /home/pi/CubeSatSim/camera_out.jpg /home/pi/CubeSatSim/image_file.bin")
|
|
|
|
system("/home/pi/ssdv/ssdv -e -n -i " + str(image_index) + " -q 3 -J /home/pi/CubeSatSim/camera_out.jpg /home/pi/CubeSatSim/image_file.bin")
|
|
|
|
print("image_index " + str(image_index) + "\n")
|
|
|
|
print("image_index " + str(image_index) + "\n")
|
|
|
|
image_index = ( image_index + 1 ) % 256
|
|
|
|
image_index = ( image_index + 1 ) % 256
|
|
|
|
sleep(2)
|
|
|
|
sleep(2)
|
|
|
|
|