From 7922354cecccd06d7f7daaace5cd97b85a222ae9 Mon Sep 17 00:00:00 2001 From: rsformoso Date: Wed, 8 Jul 2026 23:04:06 +0800 Subject: [PATCH] Move camera wait buffer to take_photo function --- run_scan.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/run_scan.py b/run_scan.py index e821116..d386da4 100644 --- a/run_scan.py +++ b/run_scan.py @@ -96,7 +96,7 @@ def take_photo(): f"http://{CAMERA_IP}/exec_shutter.cgi?com=2nd1strelease", timeout=TIMEOUT, ) - time.sleep(0.3) + time.sleep(PHOTO_TO_MOVE_DELAY) # Buffer to account for shutter speed def rotate_stand(ser): @@ -159,8 +159,6 @@ def main(): while current_angle < TOTAL_TARGET_DEGREES: take_photo() - # Buffer to account for shutter speed - time.sleep(PHOTO_TO_MOVE_DELAY) rotate_stand(ser) current_angle += ROTATION_STEP_SIZE