mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 03:33:35 +08:00
MAVLink/Commander: @Pedro-Roque's offboard yawrate handling
This commit is contained in:
committed by
Julian Oes
parent
579cbbb42c
commit
ac002db25c
@@ -837,6 +837,14 @@ MulticopterAttitudeControl::run()
|
||||
}
|
||||
|
||||
control_attitude();
|
||||
if (_v_control_mode.flag_control_yawrate_override_enabled)
|
||||
{
|
||||
/* Yaw rate override enabled, overwrite the yaw setpoint */
|
||||
vehicle_rates_setpoint_poll();
|
||||
const auto yawrate_reference = _v_rates_sp.yaw;
|
||||
_rates_sp(2) = yawrate_reference;
|
||||
}
|
||||
|
||||
publish_rates_setpoint();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user