From 4f4d4721e34b0844a924c3fdd34a4900685569d7 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 19 Sep 2026 08:35:08 -0400 Subject: [PATCH] Update transmit.py add -n to still photos --- transmit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transmit.py b/transmit.py index c9373b16..9a20b8a5 100644 --- a/transmit.py +++ b/transmit.py @@ -200,9 +200,9 @@ def camera_photo(): stored_image = False try: if os_status == "bookworm": - system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") + system("rpicam-still -n -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") else: - system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") + system("raspistill -n -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") f = open("/home/pi/CubeSatSim/camera_out.jpg") f.close() print("Photo taken") @@ -1212,9 +1212,9 @@ if __name__ == "__main__": # camera = PiCamera() print("Testing for camera") if os_status == "bookworm": - system("rpicam-still -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") + system("rpicam-still -n -o /home/pi/CubeSatSim/camera_out.jpg --width 320 --height 256") # > /dev/null 2>&1") else: - system("raspistill -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") + system("raspistill -n -o /home/pi/CubeSatSim/camera_out.jpg -w 320 -h 256") f = open("/home/pi/CubeSatSim/camera_out.jpg") f.close() print("Camera present")