mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mc_att_control: fix vehicle_rates_setpoint_poll() error due to merge timing
This commit is contained in:
parent
ca5651bd8b
commit
cecd009ddc
@ -687,10 +687,9 @@ MulticopterAttitudeControl::run()
|
||||
}
|
||||
|
||||
control_attitude();
|
||||
if (_v_control_mode.flag_control_yawrate_override_enabled)
|
||||
{
|
||||
if (_v_control_mode.flag_control_yawrate_override_enabled) {
|
||||
/* Yaw rate override enabled, overwrite the yaw setpoint */
|
||||
vehicle_rates_setpoint_poll();
|
||||
_v_rates_sp_sub.update(&_v_rates_sp);
|
||||
const auto yawrate_reference = _v_rates_sp.yaw;
|
||||
_rates_sp(2) = yawrate_reference;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user