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 a88bf0a commit 2800f21Copy full SHA for 2800f21
steering_controllers_library/src/steering_odometry.cpp
@@ -180,7 +180,7 @@ bool SteeringOdometry::update_from_velocity(
180
181
double linear_velocity = get_linear_velocity_double_traction_axle(
182
right_traction_wheel_vel, left_traction_wheel_vel, steer_pos_);
183
- const double angular_velocity = steer_pos_ * linear_velocity / wheel_base_;
+ const double angular_velocity = std::tan(steer_pos_) * linear_velocity / wheel_base_;
184
185
return update_odometry(linear_velocity, angular_velocity, dt);
186
}
0 commit comments