Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
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()

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

Definition at line 104 of file gvf_ik.c.

References gvf_ik_control.

Referenced by gvf_ik_control_2D().

Here is the caller graph for this function:

◆ gvf_ik_control_2D()

void gvf_ik_control_2D ( float ke,
float kn,
float phi,
struct gvf_grad * grad,
struct gvf_Hess * hess )

◆ gvf_ik_init()

void gvf_ik_init ( void )

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


Definition at line 123 of file gvf_ik.c.

References DefaultPeriodic, gvf_ik_control, GVF_IK_GAMMA_AMPLITUDE, GVF_IK_GAMMA_OMEGA, gvf_trajectory, NONE, register_periodic_telemetry(), reset_gamma_t0(), and send_gvf().

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, 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()

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()

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

TELEMETRY -----------------------------------------------------------—.

Definition at line 46 of file gvf_ik.c.

References dev, ELLIPSE, get_sys_time_msec(), gvf_ik_control, gvf_ik_telemetry, gvf_segment, gvf_trajectory, last_gvf_t0, and LINE.

Here is the call graph for this function:

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().