[nav] add an option for takeoff height (#3462)

Add a parameter to the takeoff function to specify the height at which the takeoff is considered finished.
A negative value tells that the default value (configurable from airframe file) should be used.
Update demo FP
This commit is contained in:
Gautier Hattenberger
2025-06-04 22:41:41 +02:00
committed by GitHub
parent 12586a6811
commit 06a0542090
5 changed files with 53 additions and 24 deletions
@@ -36,7 +36,7 @@
</block>
<block name="Takeoff (Here)" strip_button="Takeoff (Here)" group="takeoff">
<set value="0" var="autopilot.flight_time"/>
<call fun="nav_takeoff_from_here()"/>
<call fun="nav_takeoff_from_here(-1.)"/>
<deroute block="Standby"/>
</block>
<block key="Ctrl+a" name="Standby" strip_button="Standby" strip_icon="home.png" group="home">
@@ -35,7 +35,7 @@
<deroute block="Standby"/>
</block>
<block name="Takeoff (Here)" strip_button="Takeoff (Here)" group="takeoff">
<call fun="nav_takeoff_from_here()"/>
<call fun="nav_takeoff_from_here(-1.)"/>
<deroute block="Standby"/>
</block>
<block name="Standby" strip_button="Standby" strip_icon="home.png">