29 #include "generated/airframe.h"
32 #include "generated/flight_plan.h"
35 #define STBY_OFFSET 500
42 int32_t j, start_bx, start_by, start_bz, start_ex, start_ey, start_ez;
44 float alpha, cos_alpha, sin_alpha;
45 int32_t cube_nline_x_t, cube_nline_z_t;
47 int32_t cube_line_x_start, cube_line_x_end;
48 int32_t cube_line_z_start, cube_line_z_end;
76 cube_line_x_end = ((cube_pos_x + 1) * cube_nline_x_t) /
nav_cube.
nsect_x;
77 if (cube_line_x_end > cube_nline_x_t) {
78 cube_line_x_end = cube_nline_x_t;
88 cube_line_z_end = ((cube_pos_z + 1) * cube_nline_z_t) /
nav_cube.
nsect_z;
93 cos_alpha = cos(
alpha);
94 sin_alpha = sin(
alpha);
122 int i = cube_line_x_start + j;