We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f501fe6 commit df8f0ddCopy full SHA for df8f0dd
components/chassis.py
@@ -394,9 +394,9 @@ def stop_snapping(self) -> None:
394
def is_stationary(self) -> bool:
395
velocity = self.get_velocity()
396
return (
397
- math.isclose(velocity.vx, 0.0)
398
- and math.isclose(velocity.vy, 0.0)
399
- and math.isclose(velocity.omega, 0.0)
+ math.isclose(velocity.vx, 0.0, abs_tol=0.1)
+ and math.isclose(velocity.vy, 0.0, abs_tol=0.1)
+ and math.isclose(velocity.omega, 0.0, abs_tol=math.radians(3))
400
)
401
402
def execute(self) -> None:
0 commit comments