From 19e706fedefd861d5a975c9379841924c327f668 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 21 Feb 2018 20:16:30 -0500 Subject: [PATCH] fw_att_control fix attitude setpoint publication --- src/modules/fw_att_control/FixedwingAttitudeControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);