Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
attitude_ref_saturate_naive.h File Reference

Naive attitude reference saturation. More...

+ Include dependency graph for attitude_ref_saturate_naive.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FloatRefSat
 
struct  Int32RefSat
 

Macros

#define SATURATE_SPEED_TRIM_ACCEL(_rate, _accel, _max_rate)
 saturate angular speed and trim accel accordingly More...
 

Functions

static void attitude_ref_float_saturate_naive (struct FloatRates *rate, struct FloatRates *accel, struct FloatRefSat *sat)
 
static void attitude_ref_int_saturate_naive (struct Int32Rates *rate, struct Int32Rates *accel, struct Int32RefSat *sat)
 

Detailed Description

Naive attitude reference saturation.

Definition in file attitude_ref_saturate_naive.h.


Data Structure Documentation

struct FloatRefSat

Definition at line 32 of file attitude_ref_saturate_naive.h.

+ Collaboration diagram for FloatRefSat:
Data Fields
struct FloatRates max_accel
struct FloatRates max_rate
struct Int32RefSat

Definition at line 37 of file attitude_ref_saturate_naive.h.

+ Collaboration diagram for Int32RefSat:
Data Fields
struct Int32Rates max_accel
struct Int32Rates max_rate

Macro Definition Documentation

#define SATURATE_SPEED_TRIM_ACCEL (   _rate,
  _accel,
  _max_rate 
)
Value:
{ \
if ((_rate) >= (_max_rate)) { \
(_rate) = (_max_rate); \
if ((_accel) > 0) { \
(_accel) = 0; \
} \
} \
else if ((_rate) <= -(_max_rate)) { \
(_rate) = -(_max_rate); \
if ((_accel) < 0) { \
(_accel) = 0; \
} \
} \
}
if(PrimarySpektrumState.SpektrumTimer)

saturate angular speed and trim accel accordingly

Definition at line 43 of file attitude_ref_saturate_naive.h.

Referenced by attitude_ref_float_saturate_naive(), and attitude_ref_int_saturate_naive().

Function Documentation

static void attitude_ref_float_saturate_naive ( struct FloatRates rate,
struct FloatRates accel,
struct FloatRefSat sat 
)
inlinestatic
static void attitude_ref_int_saturate_naive ( struct Int32Rates rate,
struct Int32Rates accel,
struct Int32RefSat sat 
)
inlinestatic