Move camera wait buffer to take_photo function

This commit is contained in:
2026-07-08 23:04:06 +08:00
parent 200a500289
commit 7922354cec
+1 -3
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):
@@ -159,8 +159,6 @@ def main():
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