Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
gvf.c File Reference
#include <math.h>
#include "std.h"
#include "gvf.h"
#include "autopilot.h"
#include "modules/datalink/telemetry.h"
Include dependency graph for gvf.c:

Go to the source code of this file.

Functions

static void send_gvf (struct transport_tx *trans, struct link_device *dev)
 TELEMETRY -----------------------------------------------------------—.
void gvf_init (void)
 EXTERN FUNCTIONS ----------------------------------------------------—.
void gvf_control_2D (float ke, float kn, float e, struct gvf_grad *grad, struct gvf_Hess *hess)
void gvf_set_direction (int8_t s)
void gvf_set_speed (float speed)
void gvf_set_align (bool align)

Variables

gvf_con gvf_control
gvf_tel gvf_telemetry = {0}
static uint32_t gvf_t0 = 0

Function Documentation

◆ gvf_control_2D()

void gvf_control_2D ( float ke,
float kn,
float e,
struct gvf_grad * grad,
struct gvf_Hess * hess )

◆ gvf_init()

void gvf_init ( void )

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


Definition at line 85 of file gvf.c.

References DefaultPeriodic, gvf_control, gvf_trajectory, NONE, register_periodic_telemetry(), and send_gvf().

Here is the call graph for this function:

◆ gvf_set_align()

void gvf_set_align ( bool align)

Definition at line 245 of file gvf.c.

References gvf_control.

◆ gvf_set_direction()

void gvf_set_direction ( int8_t s)

Definition at line 232 of file gvf.c.

References gvf_control, and s.

Referenced by gvf_circle_direction(), nav_gvf_line_XY_heading(), and nav_gvf_segment_loop_XY1_XY2().

Here is the caller graph for this function:

◆ gvf_set_speed()

void gvf_set_speed ( float speed)

Definition at line 239 of file gvf.c.

References gvf_control.

◆ send_gvf()

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

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

Definition at line 42 of file gvf.c.

References dev, ELLIPSE, get_sys_time_msec(), gvf_control, gvf_segment, gvf_t0, gvf_telemetry, gvf_trajectory, and LINE.

Referenced by gvf_ik_init(), and gvf_init().

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

Variable Documentation

◆ gvf_control

◆ gvf_t0

uint32_t gvf_t0 = 0
static

Definition at line 36 of file gvf.c.

Referenced by gvf_control_2D(), and send_gvf().

◆ gvf_telemetry

gvf_tel gvf_telemetry = {0}

Definition at line 33 of file gvf.c.

Referenced by gvf_control_2D(), and send_gvf().