Browse Source

fw_att_control fix attitude setpoint publication

sbg
Daniel Agar 7 years ago
parent
commit
19e706fede
  1. 2
      src/modules/fw_att_control/FixedwingAttitudeControl.cpp

2
src/modules/fw_att_control/FixedwingAttitudeControl.cpp

@ -278,7 +278,7 @@ FixedwingAttitudeControl::vehicle_manual_poll() @@ -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);

Loading…
Cancel
Save