Update transmit.py change raspistill to rpicam-still

master-b
Alan Johnston 2 months ago committed by GitHub
parent c7862afaf4
commit dcdc5f81a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save

Powered by TurnKey Linux.