Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Sep 11, 2024
1 parent aabceea commit df52c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pacmod_interface/src/pacmod_interface/pacmod_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ void PacmodInterface::publishCommands()
const double desired_steer_wheel = std::invoke([&]() -> double {
double desired_steer_wheel{0.0};
if (convert_steer_command_) {
(control_cmd_ptr_->lateral.steering_tire_angle - steering_offset_) * adaptive_gear_ratio;
desired_steer_wheel =
(control_cmd_ptr_->lateral.steering_tire_angle - steering_offset_) * adaptive_gear_ratio;
} else {
desired_steer_wheel = actuation_cmd_ptr_->actuation.steer_cmd;
}
Expand Down

0 comments on commit df52c6a

Please sign in to comment.