Update transmit.py fix rpicam-still parameters

master-b
Alan Johnston 2 months ago committed by GitHub
parent 4b2a2e3906
commit bf2a758a61
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") 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")

Loading…
Cancel
Save

Powered by TurnKey Linux.