Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gvf_ik.c File Reference
#include <math.h>
#include "std.h"
#include "gvf_ik.h"
#include "autopilot.h"
#include "modules/datalink/telemetry.h"
+ Include dependency graph for gvf_ik.c:

Go to the source code of this file.

Functions

static void send_gvf (struct transport_tx *trans, struct link_device *dev)
 TELEMETRY -----------------------------------------------------------—.
 
static void reset_gamma_t0 (void)
 STATIC FUNCTIONS ----------------------------------------------------—.
 
static bool check_alpha (float ke, float J1, float J2, float phi, float speed)
 
void gvf_ik_init (void)
 EXTERN FUNCTIONS ----------------------------------------------------—.
 
void gvf_ik_control_2D (float ke, float kn, float phi, struct gvf_grad *grad, struct gvf_Hess *hess)
 
void gvf_ik_set_direction (int8_t s)
 

Variables

gvf_ik_con gvf_ik_control = {0}
 
gvf_ik_tel gvf_ik_telemetry = {0}
 
static uint32_t gamma_t0 = 0
 
static uint32_t last_gvf_t0 = 0
 

Function Documentation

◆ check_alpha()

static bool check_alpha ( float  ke,
float  J1,
float  J2,
float  phi,
float  speed 
)
static

Definition at line 104 of file gvf_ik.c.

References foo, gvf_ik_con::gamma, gvf_ik_con::gamma_dot, and gvf_ik_control.

Referenced by gvf_ik_control_2D().

+ Here is the caller graph for this function:

◆ gvf_ik_control_2D()

◆ gvf_ik_init()

void gvf_ik_init ( void  )

EXTERN FUNCTIONS ----------------------------------------------------—.


Definition at line 123 of file gvf_ik.c.

References DefaultPeriodic, foo, gvf_ik_con::gamma_amplitude, gvf_ik_con::gamma_omega, gvf_ik_control, GVF_IK_GAMMA_AMPLITUDE, GVF_IK_GAMMA_OMEGA, gvf_trajectory, gvf_ik_con::ke, gvf_ik_con::kn, NONE, register_periodic_telemetry(), reset_gamma_t0(), gvf_ik_con::s, send_gvf(), and gvf_tra::type.

+ Here is the call graph for this function:

◆ gvf_ik_set_direction()

void gvf_ik_set_direction ( int8_t  s)

Definition at line 294 of file gvf_ik.c.

References gvf_ik_control, gvf_ik_con::s, and s.

Referenced by nav_gvf_ik_line_XY_heading(), and nav_gvf_ik_segment_loop_XY1_XY2().

+ Here is the caller graph for this function:

◆ reset_gamma_t0()

static void reset_gamma_t0 ( void  )
static

STATIC FUNCTIONS ----------------------------------------------------—.


Definition at line 99 of file gvf_ik.c.

References gamma_t0, and get_sys_time_msec().

Referenced by gvf_ik_control_2D(), and gvf_ik_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ send_gvf()

static void send_gvf ( struct transport_tx trans,
struct link_device dev 
)
static

Variable Documentation

◆ gamma_t0

uint32_t gamma_t0 = 0
static

Definition at line 39 of file gvf_ik.c.

Referenced by gvf_ik_control_2D(), and reset_gamma_t0().

◆ gvf_ik_control

◆ gvf_ik_telemetry

gvf_ik_tel gvf_ik_telemetry = {0}

Definition at line 36 of file gvf_ik.c.

Referenced by gvf_ik_control_2D(), and send_gvf().

◆ last_gvf_t0

uint32_t last_gvf_t0 = 0
static

Definition at line 40 of file gvf_ik.c.

Referenced by gvf_ik_control_2D(), and send_gvf().