We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df52c6a commit 254bf47Copy full SHA for 254bf47
pacmod_interface/src/pacmod_interface/pacmod_interface.cpp
@@ -408,8 +408,9 @@ void PacmodInterface::publishCommands()
408
const double desired_steer_wheel = std::invoke([&]() -> double {
409
double desired_steer_wheel{0.0};
410
if (convert_steer_command_) {
411
- desired_steer_wheel =
412
- (control_cmd_ptr_->lateral.steering_tire_angle - steering_offset_) * adaptive_gear_ratio;
+ // NOTE: It is assumed that steer_cmd is send as actuation_cmd without being converted from
+ // raw_vehicle_cmd_converter.
413
+ desired_steer_wheel = (actuation.steer_cmd - steering_offset_) * adaptive_gear_ratio;
414
} else {
415
desired_steer_wheel = actuation_cmd_ptr_->actuation.steer_cmd;
416
}
0 commit comments