|
From: | Gautier Hattenberger |
Subject: | Re: [Paparazzi-devel] How to use constants and variables in flight plans? |
Date: | Mon, 17 Dec 2012 10:12:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10 |
Hello, You can try something like this: <block name="Loop1"> <for var="i" from="1" to="5"> <set name="WaypointX(WP_100)" value="WaypointX(WP_100)+100"/> <set name="WaypointY(WP_100)" value="WaypointY(WP_100)+100"/> .... <go from="100" wp="101" hmode="route"/> <go from="101" wp="102" hmode="route"/> <go from="102" wp="103" hmode="route"/> <go from="103" wp="104" hmode="route"/> </for> </block> It will increment the waypoint position each times you enter the loop. Gautier Le 15/12/2012 23:41, Jorn Anke a écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |