|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include <math.h>#include "std.h"#include "gvf_ik.h"#include "autopilot.h"#include "modules/datalink/telemetry.h"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 |
|
static |
Definition at line 104 of file gvf_ik.c.
References gvf_ik_control.
Referenced by gvf_ik_control_2D().
| void gvf_ik_control_2D | ( | float | ke, |
| float | kn, | ||
| float | phi, | ||
| struct gvf_grad * | grad, | ||
| struct gvf_Hess * | hess ) |
Definition at line 141 of file gvf_ik.c.
References alpha, check_alpha(), course, gamma_t0, get_sys_time_msec(), gvf_c_info, gvf_c_state, gvf_ik_control, gvf_ik_telemetry, gvf_low_level_control_2D(), gvf_low_level_getState(), gvf_Hess::H11, gvf_Hess::H12, gvf_Hess::H21, gvf_Hess::H22, last_gvf_t0, gvf_grad::nx, gvf_grad::ny, reset_gamma_t0(), and s.
Referenced by gvf_ik_line(), nav_gvf_ik_ellipse_XY(), and nav_gvf_ik_sin_XY_alpha().
| 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().
| 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().
|
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().
|
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.
|
static |
Definition at line 39 of file gvf_ik.c.
Referenced by gvf_ik_control_2D(), and reset_gamma_t0().
| gvf_ik_con gvf_ik_control = {0} |
Definition at line 35 of file gvf_ik.c.
Referenced by check_alpha(), gvf_ik_control_2D(), gvf_ik_init(), gvf_ik_line(), gvf_ik_set_direction(), nav_gvf_ik_ellipse_XY(), nav_gvf_ik_sin_XY_alpha(), and send_gvf().
| 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().
|
static |
Definition at line 40 of file gvf_ik.c.
Referenced by gvf_ik_control_2D(), and send_gvf().