mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
add until attribute to stay stage
This commit is contained in:
@@ -207,6 +207,7 @@ vmode CDATA #IMPLIED
|
||||
throttle CDATA #IMPLIED
|
||||
climb CDATA #IMPLIED
|
||||
alt CDATA #IMPLIED
|
||||
until CDATA #IMPLIED
|
||||
height CDATA #IMPLIED>
|
||||
|
||||
<!ATTLIST deroute
|
||||
|
||||
@@ -402,6 +402,13 @@ let rec print_stage = fun index_of_waypoints x ->
|
||||
lprintf "NavGotoXY(last_x, last_y);\n";
|
||||
ignore(output_vmode x "" "")
|
||||
end;
|
||||
begin
|
||||
try
|
||||
let c = parsed_attrib x "until" in
|
||||
lprintf "if (%s) NextStageAndBreak();\n" c
|
||||
with
|
||||
ExtXml.Error _ -> ()
|
||||
end;
|
||||
lprintf "break;\n"
|
||||
| "xyz" ->
|
||||
stage ();
|
||||
|
||||
Reference in New Issue
Block a user