Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ctrl_windtunnel.c File Reference

Windtunnel automatic step controller. More...

+ Include dependency graph for ctrl_windtunnel.c:

Go to the source code of this file.

Data Structures

struct  ctrl_windtunnel_struct
 

Macros

#define WINDTUNNEL_TO_BODY_PHI   0
 
#define WINDTUNNEL_TO_BODY_THETA   0
 
#define WINDTUNNEL_TO_BODY_PSI   0
 

Functions

static void send_windtunnel_meas (struct transport_tx *trans, struct link_device *dev)
 
void ctrl_windtunnel_init (void)
 
static void ctrl_module_run (bool in_flight)
 
void guidance_module_enter (void)
 
void guidance_module_run (bool in_flight)
 

Variables

struct ctrl_windtunnel_struct ctrl_windtunnel
 
float ctrl_windtunnel_steptime = CTRL_WINDTUNNEL_STEPTIME
 
struct min_max_ctrl_t ctrl_windtunnel_throttle = {.min = CTRL_WINDTUNNEL_THR_MIN, .max = CTRL_WINDTUNNEL_THR_MAX, .step = CTRL_WINDTUNNEL_THR_STEP}
 
struct min_max_ctrl_t ctrl_windtunnel_flaps = {.min = CTRL_WINDTUNNEL_FLAP_MIN, .max = CTRL_WINDTUNNEL_FLAP_MAX, .step = CTRL_WINDTUNNEL_FLAP_STEP}
 
static float last_time = 0
 

Detailed Description

Windtunnel automatic step controller.

Definition in file ctrl_windtunnel.c.


Data Structure Documentation

◆ ctrl_windtunnel_struct

struct ctrl_windtunnel_struct

Definition at line 45 of file ctrl_windtunnel.c.

+ Collaboration diagram for ctrl_windtunnel_struct:
Data Fields
int rc_pitch
int rc_roll
int rc_throttle
int rc_yaw
struct OrientationReps rotation

Macro Definition Documentation

◆ WINDTUNNEL_TO_BODY_PHI

#define WINDTUNNEL_TO_BODY_PHI   0

Definition at line 34 of file ctrl_windtunnel.c.

◆ WINDTUNNEL_TO_BODY_PSI

#define WINDTUNNEL_TO_BODY_PSI   0

Definition at line 42 of file ctrl_windtunnel.c.

◆ WINDTUNNEL_TO_BODY_THETA

#define WINDTUNNEL_TO_BODY_THETA   0

Definition at line 38 of file ctrl_windtunnel.c.

Function Documentation

◆ ctrl_module_run()

static void ctrl_module_run ( bool  in_flight)
static

◆ ctrl_windtunnel_init()

◆ guidance_module_enter()

◆ guidance_module_run()

◆ send_windtunnel_meas()

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

Variable Documentation

◆ ctrl_windtunnel

◆ ctrl_windtunnel_flaps

struct min_max_ctrl_t ctrl_windtunnel_flaps = {.min = CTRL_WINDTUNNEL_FLAP_MIN, .max = CTRL_WINDTUNNEL_FLAP_MAX, .step = CTRL_WINDTUNNEL_FLAP_STEP}

Definition at line 53 of file ctrl_windtunnel.c.

Referenced by ctrl_module_run().

◆ ctrl_windtunnel_steptime

float ctrl_windtunnel_steptime = CTRL_WINDTUNNEL_STEPTIME

Definition at line 53 of file ctrl_windtunnel.c.

Referenced by ctrl_module_run().

◆ ctrl_windtunnel_throttle

struct min_max_ctrl_t ctrl_windtunnel_throttle = {.min = CTRL_WINDTUNNEL_THR_MIN, .max = CTRL_WINDTUNNEL_THR_MAX, .step = CTRL_WINDTUNNEL_THR_STEP}

Definition at line 53 of file ctrl_windtunnel.c.

Referenced by ctrl_module_run().

◆ last_time

float last_time = 0
static

Definition at line 56 of file ctrl_windtunnel.c.

Referenced by actuators_faulhaber_periodic(), and ctrl_module_run().