Skip to content

Commit

Permalink
fix: limits of steering speed control (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsofonbraga authored Aug 5, 2022
1 parent b77bfc4 commit a123baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gazebo_plugins/src/gazebo_ros_tricycle_drive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ void GazeboRosTricycleDrivePrivate::MotorController(
if (fabs(diff_angle) < max_steering_angle_tol_) {
// we're withing angle tolerance
applied_steering_speed = 0;
} else if (diff_angle < target_speed) {
} else if (diff_angle >= max_steering_angle_tol_) {
// steer toward target angle
applied_steering_speed = max_steering_speed_;
} else {
Expand Down

0 comments on commit a123baa

Please sign in to comment.