mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Plane: don't relax attitude controllers for tailsitters
this fixes an issue with testing control movement when disarmed
This commit is contained in:
parent
3d9126ec4a
commit
c081ce9adb
@ -1421,7 +1421,13 @@ void QuadPlane::update(void)
|
||||
/*
|
||||
make sure we don't have any residual control from previous flight stages
|
||||
*/
|
||||
attitude_control->relax_attitude_controllers();
|
||||
if (is_tailsitter()) {
|
||||
// tailsitters only relax I terms, to make ground testing easier
|
||||
attitude_control->reset_rate_controller_I_terms();
|
||||
} else {
|
||||
// otherwise full relax
|
||||
attitude_control->relax_attitude_controllers();
|
||||
}
|
||||
pos_control->relax_alt_hold_controllers(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user