mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
don't publish att sp in altctl because it can mask the setpoint from the pos controller
This commit is contained in:
@@ -135,7 +135,7 @@ void MulticopterAttitudeControlBase::control_attitude(float dt)
|
||||
}
|
||||
|
||||
_v_att_sp_mod.R_valid = false;
|
||||
_publish_att_sp = true;
|
||||
// _publish_att_sp = true;
|
||||
}
|
||||
|
||||
/* reset yaw setpint to current position if needed */
|
||||
@@ -143,7 +143,7 @@ void MulticopterAttitudeControlBase::control_attitude(float dt)
|
||||
_reset_yaw_sp = false;
|
||||
_v_att_sp_mod.yaw_body = _v_att->get().yaw;
|
||||
_v_att_sp_mod.R_valid = false;
|
||||
_publish_att_sp = true;
|
||||
// _publish_att_sp = true;
|
||||
}
|
||||
|
||||
if (!_v_control_mode->get().flag_control_velocity_enabled) {
|
||||
@@ -152,7 +152,7 @@ void MulticopterAttitudeControlBase::control_attitude(float dt)
|
||||
_v_att_sp_mod.pitch_body = -_manual_control_sp->get().x
|
||||
* _params.man_pitch_max;
|
||||
_v_att_sp_mod.R_valid = false;
|
||||
_publish_att_sp = true;
|
||||
// _publish_att_sp = true;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user