mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 20:04:09 +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) ->
|
||||
lprintf "static inline bool_t %s(float _x, float _y) {\n" (inside_function s);
|
||||
right ();
|
||||
match t with
|
||||
| StaticSector -> print_inside_polygon pts;
|
||||
| DynamicSector -> print_inside_polygon_global pts;
|
||||
begin
|
||||
match t with
|
||||
| StaticSector -> print_inside_polygon pts
|
||||
| DynamicSector -> print_inside_polygon_global pts
|
||||
end;
|
||||
left ();
|
||||
lprintf "}\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user