mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
[flight plans] add call_once alias (#1675)
- `<call_once fun="x"/>` is an alias for `<call fun="x" loop="false"/>` The idea is to make it easier and more clear how to call functions that do not return a bool and should only be called once.
This commit is contained in:
committed by
Gautier Hattenberger
parent
06cffe2955
commit
0e4c2c9233
@@ -27,14 +27,14 @@
|
||||
<!ELEMENT exceptions (exception*)>
|
||||
|
||||
<!ELEMENT blocks (block+)>
|
||||
<!ELEMENT block (exception|while|heading|attitude|manual|go|xyz|set|call|circle|deroute|stay|follow|survey_rectangle|for|return|eight|oval|home|path)*>
|
||||
<!ELEMENT block (exception|while|heading|attitude|manual|go|xyz|set|call|call_once|circle|deroute|stay|follow|survey_rectangle|for|return|eight|oval|home|path)*>
|
||||
|
||||
<!ELEMENT include (arg|with)*>
|
||||
<!ELEMENT arg EMPTY>
|
||||
<!ELEMENT with EMPTY>
|
||||
|
||||
<!ELEMENT while (exception|while|heading|attitude|manual|go|xyz|set|call|circle|deroute|stay|follow|survey_rectangle|for|return|eight|oval|path)*>
|
||||
<!ELEMENT for (exception|while|heading|attitude|manual|go|xyz|set|call|circle|deroute|stay|follow|survey_rectangle|for|return|eight|oval|path)*>
|
||||
<!ELEMENT while (exception|while|heading|attitude|manual|go|xyz|set|call|call_once|circle|deroute|stay|follow|survey_rectangle|for|return|eight|oval|path)*>
|
||||
<!ELEMENT for (exception|while|heading|attitude|manual|go|xyz|set|call|call_once|circle|deroute|stay|follow|survey_rectangle|for|return|eight|oval|path)*>
|
||||
<!ELEMENT exception EMPTY>
|
||||
<!ELEMENT heading EMPTY>
|
||||
<!ELEMENT attitude EMPTY>
|
||||
@@ -43,6 +43,7 @@
|
||||
<!ELEMENT xyz EMPTY>
|
||||
<!ELEMENT set EMPTY>
|
||||
<!ELEMENT call EMPTY>
|
||||
<!ELEMENT call_once EMPTY>
|
||||
<!ELEMENT circle EMPTY>
|
||||
<!ELEMENT home EMPTY>
|
||||
<!ELEMENT eight EMPTY>
|
||||
@@ -216,6 +217,10 @@ until CDATA #IMPLIED
|
||||
loop CDATA #IMPLIED
|
||||
break CDATA #IMPLIED>
|
||||
|
||||
<!ATTLIST call_once
|
||||
fun CDATA #REQUIRED
|
||||
break CDATA #IMPLIED>
|
||||
|
||||
<!ATTLIST follow
|
||||
ac_id CDATA #REQUIRED
|
||||
distance CDATA #REQUIRED
|
||||
|
||||
Reference in New Issue
Block a user