Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use steer_p_gain for UpdateVelocity steer joint speed #2355

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/systems/ackermann_steering/AckermannSteering.cc
Original file line number Diff line number Diff line change
Expand Up @@ -885,11 +885,10 @@ void AckermannSteeringPrivate::UpdateVelocity(
double leftDelta = leftSteeringJointAngle - leftSteeringPos->Data()[0];
double rightDelta = rightSteeringJointAngle - rightSteeringPos->Data()[0];

// Simple proportional control with a gain of 1
// Simple proportional control with settable gain.
// Adding programmable PID values might be a future feature.
// Works as is for tested cases
this->leftSteeringJointSpeed = leftDelta;
this->rightSteeringJointSpeed = rightDelta;
this->leftSteeringJointSpeed = this->gainPAng * leftDelta;
this->rightSteeringJointSpeed = this->gainPAng * rightDelta;
}

//////////////////////////////////////////////////
Expand Down
1 change: 0 additions & 1 deletion src/systems/ackermann_steering/AckermannSteering.hh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ namespace systems
/// the index of the steering angle position actuator.
///
/// - `<steer_p_gain>`: Float used to control the steering angle P gain.
/// Only used for when in steering_only mode.
///
/// - `<left_joint>`: Name of a joint that controls a left wheel. This
/// element can appear multiple times, and must appear at least once.
Expand Down
Loading