mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 06:15:43 +08:00
vmode attributes in oval
This commit is contained in:
@@ -166,7 +166,11 @@ radius CDATA #REQUIRED>
|
||||
<!ATTLIST oval
|
||||
p1 CDATA #REQUIRED
|
||||
p2 CDATA #REQUIRED
|
||||
radius CDATA #REQUIRED>
|
||||
vmode CDATA #IMPLIED
|
||||
pitch CDATA #IMPLIED
|
||||
throttle CDATA #IMPLIED
|
||||
radius CDATA #REQUIRED
|
||||
until CDATA #IMPLIED>
|
||||
|
||||
<!ATTLIST survey_rectangle
|
||||
grid CDATA #REQUIRED
|
||||
|
||||
@@ -418,6 +418,13 @@ let rec print_stage = fun index_of_waypoints x ->
|
||||
let r = parsed_attrib x "radius" in
|
||||
let _vmode = output_vmode x p1 "" in
|
||||
lprintf "Oval(%s, %s, %s);\n" p1 p2 r;
|
||||
begin
|
||||
try
|
||||
let c = parsed_attrib x "until" in
|
||||
lprintf "if (%s) NextStageAndBreak();\n" c
|
||||
with
|
||||
ExtXml.Error _ -> ()
|
||||
end;
|
||||
lprintf "break;\n"
|
||||
| "set" ->
|
||||
stage ();
|
||||
|
||||
Reference in New Issue
Block a user