Remove unused patrol state

This commit is contained in:
王鹏
2026-05-07 15:52:18 +08:00
parent a48ed597b4
commit 0d493ee180
2 changed files with 2 additions and 10 deletions

View File

@@ -7,8 +7,6 @@ class StuckHandler:
# 针对 0.xxxx 坐标系优化
DEFAULT_MIN_MOVE = 0.002 # 极其微小的位移也算移动
DEFAULT_STUCK_DURATION = 2.5 # 减少等待时间,提高效率
TURN_GRACE_SEC = 1.0 # 缩短宽限期,边走边转不需要 5 秒
def __init__(self, min_move_threshold=None, stuck_duration_sec=None):
self.last_pos = None
self.stuck_start_time = 0
@@ -88,4 +86,4 @@ class StuckHandler:
def reset(self):
self.last_pos = None
self.stuck_start_time = 0
self.stuck_start_time = 0