mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 16:30:07 +08:00
[flight_plan] update versatile FP to show auto variables usage
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
<corner name="_4"/>
|
||||
</sector>
|
||||
</sectors>
|
||||
<variables>
|
||||
<variable var="roll_step" init="15." min="0." max="50." step="1.0"/>
|
||||
</variables>
|
||||
<exceptions/>
|
||||
<blocks>
|
||||
<block name="Wait GPS">
|
||||
@@ -146,6 +149,12 @@
|
||||
<attitude alt="250" roll="-20.0" until="stage_time > 3" vmode="alt"/>
|
||||
</while>
|
||||
</block>
|
||||
<block name="Steps roll from var">
|
||||
<while cond="TRUE">
|
||||
<attitude alt="250" roll="roll_step" until=" stage_time > 3" vmode="alt"/>
|
||||
<attitude alt="250" roll="-roll_step" until="stage_time > 3" vmode="alt"/>
|
||||
</while>
|
||||
</block>
|
||||
<block name="Steps pitch -10, +10">
|
||||
<while cond="TRUE">
|
||||
<attitude alt="250" pitch="10" roll="0.0" until=" stage_time > 2" vmode="alt"/>
|
||||
|
||||
Reference in New Issue
Block a user