Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gvf_sin.c File Reference

Guidance algorithm based on vector fields 2D sinusoidal trajectory. More...

#include "subsystems/navigation/common_nav.h"
#include "gvf_sin.h"
#include "generated/airframe.h"
+ Include dependency graph for gvf_sin.c:

Go to the source code of this file.

Macros

#define GVF_SIN_KE   1
 
#define GVF_SIN_KN   1
 
#define GVF_SIN_ALPHA   0
 
#define GVF_SIN_W   0
 
#define GVF_SIN_OFF   0
 
#define GVF_SIN_A   0
 

Functions

void gvf_sin_info (float *phi, struct gvf_grad *grad, struct gvf_Hess *hess)
 

Variables

gvf_s_par gvf_sin_par
 

Detailed Description

Guidance algorithm based on vector fields 2D sinusoidal trajectory.

Definition in file gvf_sin.c.

Macro Definition Documentation

#define GVF_SIN_A   0

Default amplitude for the sin trajectory in meters

Definition at line 61 of file gvf_sin.c.

#define GVF_SIN_ALPHA   0

Default orientation in rads for the sin trajectory function gvf_sin_**_alpha

Definition at line 46 of file gvf_sin.c.

#define GVF_SIN_KE   1

Default gain ke for the sin trajectory

Definition at line 36 of file gvf_sin.c.

#define GVF_SIN_KN   1

Default gain kn for the sin trajectory

Definition at line 41 of file gvf_sin.c.

#define GVF_SIN_OFF   0

Default off-set in rads for the sin trajectory in rads

Definition at line 56 of file gvf_sin.c.

#define GVF_SIN_W   0

Default frequency for the sin trajectory in rads

Definition at line 51 of file gvf_sin.c.

Function Documentation

void gvf_sin_info ( float *  phi,
struct gvf_grad grad,
struct gvf_Hess hess 
)

Definition at line 69 of file gvf_sin.c.

References A, alpha, gvf_trajectory, gvf_Hess::H11, gvf_Hess::H12, gvf_Hess::H21, gvf_Hess::H22, gvf_grad::nx, gvf_grad::ny, gvf_tra::p, p, stateGetPositionEnu_f(), EnuCoor_f::x, and EnuCoor_f::y.

Referenced by gvf_sin_XY_alpha().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

gvf_s_par gvf_sin_par
Initial value:
}
#define GVF_SIN_W
Definition: gvf_sin.c:51
#define GVF_SIN_KN
Definition: gvf_sin.c:41
#define GVF_SIN_ALPHA
Definition: gvf_sin.c:46
#define GVF_SIN_A
Definition: gvf_sin.c:61
#define GVF_SIN_KE
Definition: gvf_sin.c:36
#define GVF_SIN_OFF
Definition: gvf_sin.c:56

Definition at line 64 of file gvf_sin.c.

Referenced by gvf_sin_XY_alpha().