Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
example vertical More...
#include "std.h"
Go to the source code of this file.
Data Structures | |
struct | VerticalCtrlDemo |
Macros | |
#define | GUIDANCE_H_MODE_MODULE_SETTING GUIDANCE_H_MODE_HOVER |
#define | GUIDANCE_V_MODE_MODULE_SETTING GUIDANCE_V_MODE_MODULE |
Functions | |
void | guidance_v_module_init (void) |
void | guidance_v_module_enter (void) |
Entering the module (user switched to module) More... | |
void | guidance_v_module_run (bool in_flight) |
Variables | |
struct VerticalCtrlDemo | v_ctrl |
example vertical
Implements an example vertical controller in a module.
Definition in file vertical_ctrl_module_demo.h.
struct VerticalCtrlDemo |
Definition at line 33 of file vertical_ctrl_module_demo.h.
Data Fields | ||
---|---|---|
float | agl | |
float | igain | |
float | pgain | |
float | setpoint | |
float | sum_err |
#define GUIDANCE_H_MODE_MODULE_SETTING GUIDANCE_H_MODE_HOVER |
Definition at line 44 of file vertical_ctrl_module_demo.h.
#define GUIDANCE_V_MODE_MODULE_SETTING GUIDANCE_V_MODE_MODULE |
Definition at line 47 of file vertical_ctrl_module_demo.h.
void guidance_v_module_enter | ( | void | ) |
Entering the module (user switched to module)
Definition at line 111 of file ctrl_module_demo.c.
References OpticalFlowLanding::agl_lp, cov_div, OpticalFlowLanding::cov_set_point, COV_WINDOW_SIZE, divergence, divergence_history, OpticalFlowLanding::divergence_setpoint, dt, ind_hist, landing, normalized_thrust, of_landing_ctrl, previous_cov_err, previous_err, previous_message_nr, previous_time, VerticalCtrlDemo::sum_err, OpticalFlowLanding::sum_err, thrust_history, v_ctrl, and vision_message_nr.
Referenced by guidance_v_mode_changed().
void guidance_v_module_init | ( | void | ) |
Definition at line 105 of file ctrl_module_demo.c.
References vertical_ctrl_module_init().
Referenced by guidance_v_init().
void guidance_v_module_run | ( | bool | in_flight | ) |
Definition at line 526 of file optical_flow_landing.c.
References vertical_ctrl_module_run().
struct VerticalCtrlDemo v_ctrl |
Definition at line 53 of file vertical_ctrl_module_demo.c.
Referenced by guidance_v_module_enter(), vertical_ctrl_agl_cb(), vertical_ctrl_module_init(), and vertical_ctrl_module_run().