Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
Angular rate representations
Collaboration diagram for Angular rate representations:

Macros

#define RATE_I   0
#define RATE_F   1

Functions

void stateCalcBodyRates_i (void)
void stateCalcBodyRates_f (void)
static bool stateIsRateValid (void)
 Test if rates are valid.
static void stateSetBodyRates_i (uint16_t id, struct Int32Rates *body_rate)
 Set vehicle body angular rate (int).
static void stateSetBodyRates_f (uint16_t id, struct FloatRates *body_rate)
 Set vehicle body angular rate (float).
static struct Int32Rates * stateGetBodyRates_i (void)
 Get vehicle body angular rate (int).
static struct FloatRates * stateGetBodyRates_f (void)
 Get vehicle body angular rate (float).

Variables

uint8_t State::rate_status
 Holds the status bits for all angular rate representations.
uint16_t State::rates_input_filter
 Holds the input filter id for rates.
struct Int32Rates State::body_rates_i
 Angular rates in body frame.
struct FloatRates State::body_rates_f
 Angular rates in body frame.

Detailed Description

Macro Definition Documentation

◆ RATE_F

#define RATE_F   1

◆ RATE_I

#define RATE_I   0

Function Documentation

◆ stateCalcBodyRates_f()

void stateCalcBodyRates_f ( void )

Definition at line 1377 of file state.c.

References RATE_F, RATE_I, RATES_FLOAT_OF_BFP, and state.

Referenced by stateGetBodyRates_f().

Here is the caller graph for this function:

◆ stateCalcBodyRates_i()

void stateCalcBodyRates_i ( void )

Definition at line 1362 of file state.c.

References RATE_F, RATE_I, RATES_BFP_OF_REAL, and state.

Referenced by stateGetBodyRates_i().

Here is the caller graph for this function:

◆ stateGetBodyRates_f()

◆ stateGetBodyRates_i()

struct Int32Rates * stateGetBodyRates_i ( void )
inlinestatic

Get vehicle body angular rate (int).

Definition at line 1383 of file state.h.

References RATE_I, state, and stateCalcBodyRates_i().

Referenced by ctrl_module_run(), logger_control_effectiveness_periodic(), send_att(), send_att(), stabilization_attitude_run(), and stabilization_attitude_run().

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

◆ stateIsRateValid()

bool stateIsRateValid ( void )
inlinestatic

Test if rates are valid.

Definition at line 1353 of file state.h.

References state.

◆ stateSetBodyRates_f()

◆ stateSetBodyRates_i()

void stateSetBodyRates_i ( uint16_t id,
struct Int32Rates * body_rate )
inlinestatic

Set vehicle body angular rate (int).

Definition at line 1361 of file state.h.

References RATE_I, RATES_COPY, state, and STATE_CHECK_INPUT_AND_RETURN.

Referenced by set_body_state_from_quat(), and set_body_state_from_quat().

Here is the caller graph for this function:

Variable Documentation

◆ body_rates_f

struct FloatRates State::body_rates_f

Angular rates in body frame.

Units: rad/s

Definition at line 438 of file state.h.

◆ body_rates_i

struct Int32Rates State::body_rates_i

Angular rates in body frame.

Units: rad/s in BFP with INT32_RATE_FRAC

Definition at line 432 of file state.h.

◆ rate_status

uint8_t State::rate_status

Holds the status bits for all angular rate representations.

When the corresponding bit is one the representation is already computed.

Definition at line 421 of file state.h.

◆ rates_input_filter

uint16_t State::rates_input_filter

Holds the input filter id for rates.

Definition at line 426 of file state.h.