Compare commits

...

2 Commits

Author SHA1 Message Date
rsformoso 55c70ca2a8 Adjust comment wording 2026-07-08 23:05:40 +08:00
rsformoso 7922354cec Move camera wait buffer to take_photo function 2026-07-08 23:04:06 +08:00
+2 -4
View File
@@ -96,7 +96,7 @@ def take_photo():
f"http://{CAMERA_IP}/exec_shutter.cgi?com=2nd1strelease", f"http://{CAMERA_IP}/exec_shutter.cgi?com=2nd1strelease",
timeout=TIMEOUT, timeout=TIMEOUT,
) )
time.sleep(0.3) time.sleep(PHOTO_TO_MOVE_DELAY) # Buffer to account for shutter speed
def rotate_stand(ser): def rotate_stand(ser):
@@ -153,14 +153,12 @@ def main():
initialize_stand(ser) initialize_stand(ser)
initialize_camera() initialize_camera()
time.sleep(2.0) # Buffer to ensure the display is not moving time.sleep(2.0) # Buffer to ensure the stand is not moving
current_angle = 0.0 current_angle = 0.0
while current_angle < TOTAL_TARGET_DEGREES: while current_angle < TOTAL_TARGET_DEGREES:
take_photo() take_photo()
# Buffer to account for shutter speed
time.sleep(PHOTO_TO_MOVE_DELAY)
rotate_stand(ser) rotate_stand(ser)
current_angle += ROTATION_STEP_SIZE current_angle += ROTATION_STEP_SIZE