Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plane: Fix level-off and throttle during takeoff
This patch intends to fix two issues with auto takeoff mission item for planes without an airspeed sensor. Level-off fix: - Correct the level-off condition by factor 2 because during level-off, the pitch and therefore the climb-rate decreses linearly. Mathmatically the plane therefore only climbs half of the altitude in the expected time and is not guaranteed to converge to target altitude by itself. - Add flag for level-off stage and let TECS handle the final climb. Throttle without airspeed sensor: - Remove conditional evaluation of airspeed sensor to enable traditional TECS-controlled throttle range also without airspeed sensor. This restores the behavior of ArduPlane 4.5.7. It is to be discussed if the flag THROTTLE_RANGE in parameter TKOFF_OPTIONS is to be reversed to keep the behavior from Plane 4.5.7 consistent with Plane 4.6 onwards. It could be something like FORCE_MAX_THROTTLE instead.
- Loading branch information