Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nav_cube.h File Reference

Fixedwing Navigation in a cube towards a center. More...

#include "std.h"
+ Include dependency graph for nav_cube.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_LINES_X   8
 
#define STBY_OFFSET   500
 
#define nav_cube_SetAlpha(i)   { cube_alpha=i; }
 
#define nav_cube_SetSect(i)   { cube_sect=i; }
 
#define nav_cube_SetGridX(i)   { cube_grid_x=i; }
 
#define nav_cube_SetGridZ(i)   { cube_grid_z=i; }
 
#define nav_cube_SetSizeX(i)   { cube_size_x=i; }
 
#define nav_cube_SetSizeY(i)   { cube_size_y=i; }
 
#define nav_cube_SetSizeZ(i)   { cube_size_z=i; }
 
#define nav_cube_SetOffsX(i)   { cube_offs_x=i; }
 
#define nav_cube_SetOffsY(i)   { cube_offs_y=i; }
 
#define nav_cube_SetOffsZ(i)   { cube_offs_z=i; }
 
#define nav_cube_SetNSectX(i)   { cube_nsect_x=i; }
 
#define nav_cube_SetNSectZ(i)   { cube_nsect_z=i; }
 

Functions

bool_t nav_cube_init (uint8_t turb, uint8_t tb, uint8_t te)
 
bool_t nav_cube (int8_t j, int8_t i, uint8_t dest_b, uint8_t dest_e, uint8_t src_b, uint8_t src_e)
 

Variables

int32_t cube_alpha
 angle of flight direction to north, clockwise More...
 
int32_t cube_size_x
 size of the cube x (perpendicular to flight dir) More...
 
int32_t cube_size_y
 size of the cube y (in flight dir) More...
 
int32_t cube_size_z
 height of the cube z More...
 
int32_t cube_grid_x
 grid distance x (horizontal) More...
 
int32_t cube_grid_z
 grid distance z (vertical) More...
 
int32_t cube_offs_x
 offset to center x (horizontal) More...
 
int32_t cube_offs_y
 offset to center y (in direction) More...
 
int32_t cube_offs_z
 offset to center z (vertical) More...
 
int32_t cube_sect
 sector to fly in (1..[nsect_x*nsect_z]) More...
 
int32_t cube_nsect_x
 number of sectors horizontal More...
 
int32_t cube_nsect_z
 number of sectors vertical More...
 
int32_t cube_nline_x
 number of lines x (horizontal) More...
 
int32_t cube_nline_z
 number of lines z (vertical) More...
 

Detailed Description

Fixedwing Navigation in a cube towards a center.

Definition in file nav_cube.h.

Macro Definition Documentation

#define MAX_LINES_X   8

Definition at line 34 of file nav_cube.h.

Referenced by nav_cube_init().

#define nav_cube_SetAlpha (   i)    { cube_alpha=i; }

Definition at line 59 of file nav_cube.h.

#define nav_cube_SetGridX (   i)    { cube_grid_x=i; }

Definition at line 61 of file nav_cube.h.

#define nav_cube_SetGridZ (   i)    { cube_grid_z=i; }

Definition at line 62 of file nav_cube.h.

#define nav_cube_SetNSectX (   i)    { cube_nsect_x=i; }

Definition at line 69 of file nav_cube.h.

#define nav_cube_SetNSectZ (   i)    { cube_nsect_z=i; }

Definition at line 70 of file nav_cube.h.

#define nav_cube_SetOffsX (   i)    { cube_offs_x=i; }

Definition at line 66 of file nav_cube.h.

#define nav_cube_SetOffsY (   i)    { cube_offs_y=i; }

Definition at line 67 of file nav_cube.h.

#define nav_cube_SetOffsZ (   i)    { cube_offs_z=i; }

Definition at line 68 of file nav_cube.h.

#define nav_cube_SetSect (   i)    { cube_sect=i; }

Definition at line 60 of file nav_cube.h.

#define nav_cube_SetSizeX (   i)    { cube_size_x=i; }

Definition at line 63 of file nav_cube.h.

#define nav_cube_SetSizeY (   i)    { cube_size_y=i; }

Definition at line 64 of file nav_cube.h.

#define nav_cube_SetSizeZ (   i)    { cube_size_z=i; }

Definition at line 65 of file nav_cube.h.

#define STBY_OFFSET   500

Definition at line 35 of file nav_cube.h.

Referenced by nav_cube_init().

Function Documentation

bool_t nav_cube ( int8_t  j,
int8_t  i,
uint8_t  dest_b,
uint8_t  dest_e,
uint8_t  src_b,
uint8_t  src_e 
)

Variable Documentation

int32_t cube_alpha

angle of flight direction to north, clockwise

Definition at line 34 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_grid_x

grid distance x (horizontal)

Definition at line 36 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_grid_z

grid distance z (vertical)

Definition at line 36 of file nav_cube.c.

Referenced by nav_cube(), and nav_cube_init().

int32_t cube_nline_x

number of lines x (horizontal)

Definition at line 38 of file nav_cube.c.

Referenced by nav_cube(), and nav_cube_init().

int32_t cube_nline_z

number of lines z (vertical)

Definition at line 38 of file nav_cube.c.

Referenced by nav_cube(), and nav_cube_init().

int32_t cube_nsect_x

number of sectors horizontal

Definition at line 40 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_nsect_z

number of sectors vertical

Definition at line 40 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_offs_x

offset to center x (horizontal)

Definition at line 37 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_offs_y

offset to center y (in direction)

Definition at line 37 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_offs_z

offset to center z (vertical)

Definition at line 37 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_sect

sector to fly in (1..[nsect_x*nsect_z])

Definition at line 39 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_size_x

size of the cube x (perpendicular to flight dir)

Definition at line 35 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_size_y

size of the cube y (in flight dir)

Definition at line 35 of file nav_cube.c.

Referenced by nav_cube_init().

int32_t cube_size_z

height of the cube z

Definition at line 35 of file nav_cube.c.

Referenced by nav_cube_init().