mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Plane: reset TECS at end of auto VTOL takeoff
This commit is contained in:
parent
2a03144fdb
commit
7a14992cce
@ -2672,6 +2672,13 @@ bool QuadPlane::verify_vtol_takeoff(const AP_Mission::Mission_Command &cmd)
|
||||
set_alt_target_current();
|
||||
|
||||
plane.complete_auto_takeoff();
|
||||
|
||||
if (plane.control_mode == &plane.mode_auto) {
|
||||
// we reset TECS so that the target height filter is not
|
||||
// constrained by the climb and sink rates from the initial
|
||||
// takeoff height.
|
||||
plane.SpdHgt_Controller->reset();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user