|
|
|
@ -138,7 +138,7 @@ 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:
|
|
|
|
system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") # > /dev/null 2>&1")
|
|
|
|
system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1")
|
|
|
|
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")
|
|
|
|
@ -668,7 +668,7 @@ if __name__ == "__main__":
|
|
|
|
# from pysstv.sstv import SSTV
|
|
|
|
# from pysstv.sstv import SSTV
|
|
|
|
# camera = PiCamera()
|
|
|
|
# camera = PiCamera()
|
|
|
|
print("Testing for camera")
|
|
|
|
print("Testing for camera")
|
|
|
|
system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256")
|
|
|
|
system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256")
|
|
|
|
f = open("/home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
f = open("/home/pi/CubeSatSim/camera_out.jpg")
|
|
|
|
f.close()
|
|
|
|
f.close()
|
|
|
|
print("Camera present")
|
|
|
|
print("Camera present")
|
|
|
|
|