diff --git a/src/px4_connection/src/px4_controller.cpp b/src/px4_connection/src/px4_controller.cpp index 801d5af0..e9f257f1 100644 --- a/src/px4_connection/src/px4_controller.cpp +++ b/src/px4_connection/src/px4_controller.cpp @@ -266,7 +266,7 @@ private: if (current_control_mode == CONTROL_MODE_ATTITUDE) { RCLCPP_INFO(this->get_logger(), "Sending attitude setpoint"); - send_attitude_setpoint(new_setpoint); + send_attitude_setpoint(); } else if (current_control_mode == CONTROL_MODE_VELOCITY) {