mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
VTOL fw_att don't reset integrators during transition
This commit is contained in:
committed by
Lorenz Meier
parent
e18fe0a8a8
commit
1b2973f602
@@ -1032,8 +1032,12 @@ FixedwingAttitudeControl::task_main()
|
||||
_wheel_ctrl.reset_integrator();
|
||||
}
|
||||
|
||||
/* If the aircraft is on ground reset the integrators */
|
||||
if (_vehicle_land_detected.landed || _vehicle_status.is_rotary_wing) {
|
||||
/* Reset integrators if the aircraft is on ground
|
||||
* or a multicopter (but not transitioning VTOL)
|
||||
*/
|
||||
if (_vehicle_land_detected.landed
|
||||
|| (_vehicle_status.is_rotary_wing && !_vehicle_status.in_transition_mode)) {
|
||||
|
||||
_roll_ctrl.reset_integrator();
|
||||
_pitch_ctrl.reset_integrator();
|
||||
_yaw_ctrl.reset_integrator();
|
||||
|
||||
Reference in New Issue
Block a user