diff --git a/src/modules/fw_att_control/FixedwingAttitudeControl.cpp b/src/modules/fw_att_control/FixedwingAttitudeControl.cpp index daa1375b33..84b00c9db5 100644 --- a/src/modules/fw_att_control/FixedwingAttitudeControl.cpp +++ b/src/modules/fw_att_control/FixedwingAttitudeControl.cpp @@ -278,7 +278,7 @@ FixedwingAttitudeControl::vehicle_manual_poll() q.copyTo(_att_sp.q_d); _att_sp.q_d_valid = true; - if (_attitude_setpoint_id != nullptr) { + if (_attitude_sp_pub != nullptr) { /* publish the attitude rates setpoint */ orb_publish(_attitude_setpoint_id, _attitude_sp_pub, &_att_sp);