nav_bungee_takeoff
Takeoff functions for bungee takeoff. Run initialize function when the plane is on the bungee, the bungee is fully extended and you are ready to launch the plane. After initialized, the plane will follow a line drawn by the position of the plane on initialization and the position of the bungee (given in the arguments). Once the plane crosses the throttle line, which is perpendicular to the line the plane is following, and intersects the position of the bungee (plus or minus a fixed distance (BUNGEE_TAKEOFF_DISTANCE in airframe file) from the bungee just in case the bungee doesn’t release exactly above the bungee) the prop will come on. The plane will then continue to follow the line until it has reached a specific height (defined in as BUNGEE_TAKEOFF_HEIGHT in airframe file) above the bungee waypoint and airspeed (defined as BUNGEE_TAKEOFF_AIRSPEED in the airframe file). The airspeed limit is only used if USE_AIRSPEED flag is defined or set to true (and assuming the airspeed is then available). It is also possible to specify the pitch angle (BUNGEE_TAKEOFF_PITCH) and the throttle (BUNGEE_TAKEOFF_THROTTLE, between 0 and 1).
BUNGEE_TAKEOFF_ |
||
---|---|---|
Name |
Value |
Description |
HEIGHT |
distance |
Takeoff height |
AIRSPEED |
airspeed |
Procedures ends above this airspeed (and above HEIGHT). Only works with valid airspeed data and USE_AIRSPEED flag |
DISTANCE |
distance |
After this distance, the throttle is activated (if above MIN_SPEED) |
MIN_SPEED |
speed |
Throttle is activated if crossing the line above this speed |
PITCH |
angle |
Pitch angle during the complete takeoff phase |
THROTTLE |
throttle |
Throttle setpoint (between 0 and 1) used after crossing the throttle line |
Depends
- @navigation