mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 08:14:07 +08:00
FW Att C: do not directly override actuator_controls[YAW] but only change yaw rate sp
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
08cdb96f77
commit
c186f798b6
@ -551,7 +551,6 @@ void FixedwingAttitudeControl::Run()
|
||||
|
||||
/* add yaw rate setpoint from sticks in Stabilized mode */
|
||||
if (_vcontrol_mode.flag_control_manual_enabled) {
|
||||
_actuator_controls.control[actuator_controls_s::INDEX_YAW] += _manual_control_setpoint.r;
|
||||
body_rates_setpoint(2) += math::constrain(_manual_control_setpoint.r * radians(_param_fw_y_rmax.get()),
|
||||
-radians(_param_fw_y_rmax.get()), radians(_param_fw_y_rmax.get()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user