Skip to content

Commit

Permalink
Use same FP limits for TrackedVehicle to avoid self-moving (#2651)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Derbasov <[email protected]>
(cherry picked from commit 6f7d21f)
  • Loading branch information
ntfshard authored and mergify[bot] committed Dec 9, 2024
1 parent 1db0c27 commit 02263d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/tracked_vehicle/TrackedVehicle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,11 @@ void TrackedVehiclePrivate::UpdateVelocity(

// radius of the turn the robot is doing
this->desiredRotationRadiusSigned =
(fabs(angVel) < 0.1) ?
(fabs(angVel) < 1e-6) ?
// is driving straight
math::INF_D :
(
(fabs(linVel) < 0.1) ?
(fabs(linVel) < 1e-6) ?
// is rotating about a single point
0 :
// general movement
Expand Down

0 comments on commit 02263d5

Please sign in to comment.