Skip to content

Commit df52c6a

Browse files
committed
fix
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent aabceea commit df52c6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pacmod_interface/src/pacmod_interface/pacmod_interface.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ void PacmodInterface::publishCommands()
408408
const double desired_steer_wheel = std::invoke([&]() -> double {
409409
double desired_steer_wheel{0.0};
410410
if (convert_steer_command_) {
411-
(control_cmd_ptr_->lateral.steering_tire_angle - steering_offset_) * adaptive_gear_ratio;
411+
desired_steer_wheel =
412+
(control_cmd_ptr_->lateral.steering_tire_angle - steering_offset_) * adaptive_gear_ratio;
412413
} else {
413414
desired_steer_wheel = actuation_cmd_ptr_->actuation.steer_cmd;
414415
}

0 commit comments

Comments
 (0)