mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[flight_plan] fix sectors code generation
This commit is contained in:
@@ -749,9 +749,11 @@ type sector_type = StaticSector | DynamicSector
|
|||||||
let print_inside_sector = fun t (s, pts) ->
|
let print_inside_sector = fun t (s, pts) ->
|
||||||
lprintf "static inline bool_t %s(float _x, float _y) {\n" (inside_function s);
|
lprintf "static inline bool_t %s(float _x, float _y) {\n" (inside_function s);
|
||||||
right ();
|
right ();
|
||||||
match t with
|
begin
|
||||||
| StaticSector -> print_inside_polygon pts;
|
match t with
|
||||||
| DynamicSector -> print_inside_polygon_global pts;
|
| StaticSector -> print_inside_polygon pts
|
||||||
|
| DynamicSector -> print_inside_polygon_global pts
|
||||||
|
end;
|
||||||
left ();
|
left ();
|
||||||
lprintf "}\n"
|
lprintf "}\n"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user