Move camera wait buffer to take_photo function
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user