mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
fw_att_control fix attitude setpoint publication
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user