Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
gvf_parametric.cpp File Reference

Guiding vector field algorithm for 2D and 3D complex trajectories. More...

+ Include dependency graph for gvf_parametric.cpp:

Go to the source code of this file.

Functions

static void send_gvf_parametric (struct transport_tx *trans, struct link_device *dev)
 
void gvf_parametric_init (void)
 
void gvf_parametric_set_direction (int8_t s)
 
void gvf_parametric_control_2D (float kx, float ky, float f1, float f2, float f1d, float f2d, float f1dd, float f2dd)
 
bool gvf_parametric_2D_trefoil_XY (float xo, float yo, float w1, float w2, float ratio, float r, float alpha)
 2D TRAJECTORIES More...
 
bool gvf_parametric_2D_trefoil_wp (uint8_t wp, float w1, float w2, float ratio, float r, float alpha)
 
bool gvf_parametric_2D_bezier_XY (void)
 
bool gvf_parametric_2D_bezier_wp (uint8_t first_wp)
 

Variables

uint32_t gvf_parametric_t0 = 0
 
uint32_t gvf_parametric_splines_ctr = 0
 
gvf_parametric_con gvf_parametric_control
 
gvf_parametric_tra gvf_parametric_trajectory
 
int gvf_parametric_plen = 1
 
int gvf_parametric_plen_wps = 0
 
int gvf_parametric_elen = 3
 
bezier_t gvf_bezier_2D [GVF_PARAMETRIC_2D_BEZIER_N_SEG]
 

Detailed Description

Guiding vector field algorithm for 2D and 3D complex trajectories.

Definition in file gvf_parametric.cpp.

Function Documentation

◆ gvf_parametric_2D_bezier_wp()

◆ gvf_parametric_2D_bezier_XY()

bool gvf_parametric_2D_bezier_XY ( void  )

◆ gvf_parametric_2D_trefoil_wp()

bool gvf_parametric_2D_trefoil_wp ( uint8_t  wp,
float  w1,
float  w2,
float  ratio,
float  r,
float  alpha 
)

◆ gvf_parametric_2D_trefoil_XY()

bool gvf_parametric_2D_trefoil_XY ( float  xo,
float  yo,
float  w1,
float  w2,
float  ratio,
float  r,
float  alpha 
)

◆ gvf_parametric_control_2D()

◆ gvf_parametric_init()

◆ gvf_parametric_set_direction()

void gvf_parametric_set_direction ( int8_t  s)

Definition at line 120 of file gvf_parametric.cpp.

References gvf_parametric_control, gvf_parametric_con::s, and s.

◆ send_gvf_parametric()

static void send_gvf_parametric ( struct transport_tx *  trans,
struct link_device *  dev 
)
static

Variable Documentation

◆ gvf_bezier_2D

◆ gvf_parametric_control

◆ gvf_parametric_elen

int gvf_parametric_elen = 3

Definition at line 57 of file gvf_parametric.cpp.

Referenced by gvf_parametric_control_2D(), and send_gvf_parametric().

◆ gvf_parametric_plen

int gvf_parametric_plen = 1

◆ gvf_parametric_plen_wps

int gvf_parametric_plen_wps = 0

◆ gvf_parametric_splines_ctr

uint32_t gvf_parametric_splines_ctr = 0

Definition at line 46 of file gvf_parametric.cpp.

Referenced by gvf_parametric_2D_bezier_wp(), and send_gvf_parametric().

◆ gvf_parametric_t0

uint32_t gvf_parametric_t0 = 0

Definition at line 45 of file gvf_parametric.cpp.

Referenced by gvf_parametric_control_2D(), and send_gvf_parametric().

◆ gvf_parametric_trajectory