Skip to content

Commit df8f0dd

Browse files
committed
ease tolerence on stationary check
1 parent f501fe6 commit df8f0dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/chassis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ def stop_snapping(self) -> None:
394394
def is_stationary(self) -> bool:
395395
velocity = self.get_velocity()
396396
return (
397-
math.isclose(velocity.vx, 0.0)
398-
and math.isclose(velocity.vy, 0.0)
399-
and math.isclose(velocity.omega, 0.0)
397+
math.isclose(velocity.vx, 0.0, abs_tol=0.1)
398+
and math.isclose(velocity.vy, 0.0, abs_tol=0.1)
399+
and math.isclose(velocity.omega, 0.0, abs_tol=math.radians(3))
400400
)
401401

402402
def execute(self) -> None:

0 commit comments

Comments
 (0)