Skip to content

Commit

Permalink
steer limit 35deg
Browse files Browse the repository at this point in the history
  • Loading branch information
knorrrr committed Oct 9, 2024
1 parent 9a46497 commit 8d0a46f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ void ActuationCmdConverter::on_actuation_cmd(const ActuationCommandStamped::Cons

const double velocity = std::abs(velocity_report_->longitudinal_velocity);
const double acceleration = get_acceleration(*msg, velocity);
// Add steer_cmd to history
steer_cmd_history_.emplace_back(msg->header.stamp, msg->actuation.steer_cmd);
// Add steer_cmd to history. Limit -35 deg to 35 deg
steer_cmd_history_.emplace_back(msg->header.stamp, std::clamp(msg->actuation.steer_cmd, -0.61, 0.61));


// Publish ControlCommand
Expand Down

0 comments on commit 8d0a46f

Please sign in to comment.