Skip to content

Commit c315d92

Browse files
committed
fix implicit cast to int
1 parent 6167f25 commit c315d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thruster_controllers/src/polynomial_thrust_curve_controller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ auto PolynomialThrustCurveController::update_and_write_commands(
159159
pwm = pwm > params_.min_deadband_pwm && pwm < params_.max_deadband_pwm ? params_.neutral_pwm : pwm;
160160
}
161161

162-
if (!command_interfaces_[0].set_value(pwm)) {
162+
if (!command_interfaces_[0].set_value(static_cast<double>(pwm))) {
163163
RCLCPP_WARN(logger_, "Failed to set command for thruster %s", thruster_name_.c_str()); // NOLINT
164164
}
165165

0 commit comments

Comments
 (0)