mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 12:23:23 +08:00
[fp] add until attribute to go block in flight plans
This commit is contained in:
@@ -141,7 +141,8 @@ alt CDATA #IMPLIED
|
||||
height CDATA #IMPLIED
|
||||
approaching_time CDATA #IMPLIED
|
||||
throttle CDATA #IMPLIED
|
||||
climb CDATA #IMPLIED>
|
||||
climb CDATA #IMPLIED
|
||||
until CDATA #IMPLIED>
|
||||
|
||||
<!ATTLIST path
|
||||
wpts CDATA #REQUIRED
|
||||
|
||||
@@ -380,6 +380,13 @@ let rec print_stage = fun index_of_waypoints x ->
|
||||
if vmode = "glide" && hmode <> "route" then
|
||||
failwith "glide vmode requires route hmode";
|
||||
left (); lprintf "}\n";
|
||||
begin
|
||||
try
|
||||
let c = parsed_attrib x "until" in
|
||||
lprintf "if (%s) NextStageAndBreak();\n" c
|
||||
with
|
||||
ExtXml.Error _ -> ()
|
||||
end;
|
||||
lprintf "break;\n"
|
||||
| "stay" ->
|
||||
stage ();
|
||||
|
||||
Reference in New Issue
Block a user