v 1.0
This commit is contained in:
@@ -342,8 +342,10 @@ class SideTriggerGripController:
|
||||
action = f"open-recover-position pos={current_pos}"
|
||||
elif (
|
||||
now - recover_position_since
|
||||
>= config.open_position_stable_seconds
|
||||
and now - state_start >= config.rearm_seconds
|
||||
>= max(
|
||||
config.open_position_stable_seconds,
|
||||
config.rearm_seconds,
|
||||
)
|
||||
):
|
||||
state = "open_wait"
|
||||
state_start = now
|
||||
@@ -364,8 +366,8 @@ class SideTriggerGripController:
|
||||
recover_quiet_since = now
|
||||
action = "open-recover-quiet"
|
||||
elif (
|
||||
now - recover_quiet_since >= config.recover_stable_seconds
|
||||
and now - state_start >= config.rearm_seconds
|
||||
now - recover_quiet_since
|
||||
>= max(config.recover_stable_seconds, config.rearm_seconds)
|
||||
):
|
||||
state = "open_wait"
|
||||
state_start = now
|
||||
|
||||
Reference in New Issue
Block a user