Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: Fix level-off and throttle without airspeed sensor #28776

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 1, 2024

  1. 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.
    menschel committed Dec 1, 2024
    Configuration menu
    Copy the full SHA
    4ad2972 View commit details
    Browse the repository at this point in the history