130 #define nav_cube_SetAlpha(i) { nav_cube.alpha=i; }
131 #define nav_cube_SetSect(i) { nav_cube.sect=i; }
132 #define nav_cube_SetGridX(i) { nav_cube.grid_x=i; }
133 #define nav_cube_SetGridZ(i) { nav_cube.grid_z=i; }
134 #define nav_cube_SetSizeX(i) { nav_cube.size.x=i; }
135 #define nav_cube_SetSizeY(i) { nav_cube.size.y=i; }
136 #define nav_cube_SetSizeZ(i) { nav_cube.size.z=i; }
137 #define nav_cube_SetOffsX(i) { nav_cube.offset.x=i; }
138 #define nav_cube_SetOffsY(i) { nav_cube.offset.y=i; }
139 #define nav_cube_SetOffsZ(i) { nav_cube.offset.z=i; }
140 #define nav_cube_SetNSectX(i) { nav_cube.nsect_x=i; }
141 #define nav_cube_SetNSectZ(i) { nav_cube.nsect_z=i; }
int32_t sect
sector to fly in (1..[nsect_x*nsect_z])
bool nav_cube_run(int8_t j, int8_t i, uint8_t dest_b, uint8_t dest_e, uint8_t src_b, uint8_t src_e)
struct Int32Vect3 size
size of the cube.
int32_t nline_x
number of lines x (horizontal)
struct Int32Vect3 offset
offset to center.
void nav_cube_setup(uint8_t turb, uint8_t tb, uint8_t te)
int32_t grid_x
grid distance x (horizontal)
int32_t nsect_x
number of sectors horizontal
int32_t nsect_z
number of sectors vertical
int32_t grid_z
grid distance z (vertical)
int32_t nline_z
number of lines z (vertical)
int32_t alpha
angle in degrees of flight direction to north, clockwise
Paparazzi fixed point algebra.
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.