You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if steering_speed_ is > 0, use speed control, otherwise use position control
// With position control, one cannot expect dynamics to work correctly.
double diff_angle = current_angle - target_angle;
if ( steering_speed_ > 0 ) {
// this means we will steer using steering speed
double applied_steering_speed = 0;
if (fabs(diff_angle) < steering_angle_tolerance_ ) {
// we're withing angle tolerance
applied_steering_speed = 0;
} else if ( diff_angle < target_speed ) {
// steer toward target angle
applied_steering_speed = steering_speed_;
} else {
// steer toward target angle
applied_steering_speed = -steering_speed_;
}
On line 328 “diff_angle < target_speed” caused some bugs
The text was updated successfully, but these errors were encountered:
On line 328 “diff_angle < target_speed” caused some bugs
The text was updated successfully, but these errors were encountered: