Compare commits
2 Commits
200a500289
...
55c70ca2a8
| Author | SHA1 | Date | |
|---|---|---|---|
| 55c70ca2a8 | |||
| 7922354cec |
+2
-4
@@ -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):
|
||||
@@ -153,14 +153,12 @@ def main():
|
||||
|
||||
initialize_stand(ser)
|
||||
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
|
||||
|
||||
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