mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 02:38:07 +08:00
add calls to macros to get coordinates (compatibility with booz)
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
<procedure>
|
<procedure>
|
||||||
<exceptions>
|
<exceptions>
|
||||||
<exception cond="Or(! InsideGreen(estimator_x, estimator_y), estimator_z > ground_alt + 150)" deroute="Center"/>
|
<exception cond="Or(! InsideGreen(GetPosX(), GetPosY()), GetPosAlt() > ground_alt + 150)" deroute="Center"/>
|
||||||
</exceptions>
|
</exceptions>
|
||||||
|
|
||||||
<blocks>
|
<blocks>
|
||||||
<block name="Center" pre_call="if (And(!kill_throttle, !InsideRed(estimator_x, estimator_y))) kill_throttle=TRUE;">
|
<block name="Center" pre_call="if (!InsideRed(GetPosX(), GetPosY())) NavKillThrottle();">
|
||||||
<circle wp="_CENTER" radius="DEFAULT_CIRCLE_RADIUS"/>
|
<circle wp="_CENTER" radius="DEFAULT_CIRCLE_RADIUS"/>
|
||||||
</block>
|
</block>
|
||||||
</blocks>
|
</blocks>
|
||||||
|
|||||||
Reference in New Issue
Block a user