Difference between revisions of "Flight Plan Examples"
Line 7: | Line 7: | ||
<set value="0" var="kill_throttle"/> | <set value="0" var="kill_throttle"/> | ||
<set value="0" var="estimator_flight_time"/> | <set value="0" var="estimator_flight_time"/> | ||
<go from=" | <go from="START" pitch="-10" throttle="1.0" vmode="throttle" wp="ER"/> | ||
</block> | </block> | ||
</code> | </code> | ||
Line 25: | Line 25: | ||
<set value="0" var="estimator_flight_time"/> - This turns on the flight time estimator | <set value="0" var="estimator_flight_time"/> - This turns on the flight time estimator | ||
<go from=" | <go from="START" pitch="-10" throttle="1.0" vmode="throttle" wp="ER"/> - This says for the aircraft to go from "START" waypoint towards "ER" (end runway) waypoint with a elevator pitch of -10% (to keep the aircraft on the ground) and throttle at 100%. You would also add a deroute option to change to the "CLIMB" waypoint (the waypoint that gets the aircraft up to the correct height) once the aircraft was moving above stall speed. I will add the code for this soon. | ||
I am not sure what vmode="throttle" means SOME PLEASE UPDATE. | |||
This code will work in theory, but may not in practice, especially if you only have a narrow runway or your aircraft takes a long time to get up to speed. | |||
== Structure of the flight plan file == | == Structure of the flight plan file == |
Revision as of 05:02, 3 May 2010
This page will detail a number of flight plan examples.
Takeoff
<block key="t" name="Takeoff" strip_button="Takeoff" strip_icon="takeoff.png">
<set value="0" var="kill_throttle"/>
<set value="0" var="estimator_flight_time"/>
<go from="START" pitch="-10" throttle="1.0" vmode="throttle" wp="ER"/>
</block>
Explanation of the code - left to right, top to bottom.
key="t" - Not sure what this does - SOMEONE PLEASE UPDATE
name="Takeoff" - the name of the block
strip_button="Takeoff" - This shows as the name when you hover your mouse over the button
strip_icon="takeoff.png" - The name of the icon picture shown in the GCS
<set value="0" var="kill_throttle"/> - This turns on the option to change the throttle
<set value="0" var="estimator_flight_time"/> - This turns on the flight time estimator
<go from="START" pitch="-10" throttle="1.0" vmode="throttle" wp="ER"/> - This says for the aircraft to go from "START" waypoint towards "ER" (end runway) waypoint with a elevator pitch of -10% (to keep the aircraft on the ground) and throttle at 100%. You would also add a deroute option to change to the "CLIMB" waypoint (the waypoint that gets the aircraft up to the correct height) once the aircraft was moving above stall speed. I will add the code for this soon.
I am not sure what vmode="throttle" means SOME PLEASE UPDATE.
This code will work in theory, but may not in practice, especially if you only have a narrow runway or your aircraft takes a long time to get up to speed.