[generator] flight_plan rotorcraft does not parse return statement (#1942)

also parse return in rotorcraft, not just fixedwing
This commit is contained in:
Christophe De Wagter
2016-11-07 20:40:52 +01:00
committed by Felix Ruess
parent 5aa76be56d
commit f1038ccd12
+3
View File
@@ -124,6 +124,9 @@ let transform_stage = fun prefix reroutes env xml ->
| "manual" ->
let attribs = transform_values [] env attribs in
Xml.Element (tag, attribs, children)
| "return" ->
let attribs = transform_values ["reset_stage"] env attribs in
Xml.Element (tag, attribs, children)
| "go" ->
assert (children=[]);
let attribs = transform_values ["wp";"from";"hmode";"vmode"] env attribs in