|
|
|
@ -141,7 +141,9 @@ def camera_photo():
|
|
|
|
system("sudo rm /home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
system("sudo rm /home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
stored_image = False
|
|
|
|
stored_image = False
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
print(time.perf_counter() - start)
|
|
|
|
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(time.perf_counter() - start)
|
|
|
|
f = open("/home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
f = open("/home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
f.close()
|
|
|
|
f.close()
|
|
|
|
print("Photo taken")
|
|
|
|
print("Photo taken")
|
|
|
|
|