Add delay to wait for movement to finish
This commit is contained in:
@@ -40,6 +40,7 @@ TOTAL_TARGET_DEGREES = 360.0
|
||||
# Timing
|
||||
PHOTO_TO_MOVE_DELAY = 8.0
|
||||
TIMEOUT = 10.0
|
||||
MOVE_TO_PHOTO_DELAY = ROTATION_SPEED_DPS / ROTATION_STEP_SIZE + 2.0
|
||||
# ================================================
|
||||
|
||||
|
||||
@@ -114,6 +115,7 @@ def rotate_stand(ser):
|
||||
ser.write(f"a{ROTATION_STEP_SIZE}\n".encode())
|
||||
time.sleep(0.3)
|
||||
await_completion(ser, "Waiting")
|
||||
time.sleep(MOVE_TO_PHOTO_DELAY) # Buffer to account for movement time
|
||||
|
||||
|
||||
def flush_buffer(ser):
|
||||
|
||||
Reference in New Issue
Block a user