Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Macros | |
#define | RATE_I 0 |
#define | RATE_F 1 |
Functions | |
void | stateCalcBodyRates_i (void) |
void | stateCalcBodyRates_f (void) |
static bool_t | stateIsRateValid (void) |
Test if rates are valid. More... | |
static void | stateSetBodyRates_i (struct Int32Rates *body_rate) |
Set vehicle body angular rate (int). More... | |
static void | stateSetBodyRates_f (struct FloatRates *body_rate) |
Set vehicle body angular rate (float). More... | |
static struct Int32Rates * | stateGetBodyRates_i (void) |
Get vehicle body angular rate (int). More... | |
static struct FloatRates * | stateGetBodyRates_f (void) |
Get vehicle body angular rate (float). More... | |
Variables | |
uint8_t | State::rate_status |
Holds the status bits for all angular rate representations. More... | |
struct Int32Rates | State::body_rates_i |
Angular rates in body frame. More... | |
struct FloatRates | State::body_rates_f |
Angular rates in body frame. More... | |
#define RATE_F 1 |
Definition at line 111 of file state.h.
Referenced by stateCalcBodyRates_f(), stateCalcBodyRates_i(), stateGetBodyRates_f(), and stateSetBodyRates_f().
#define RATE_I 0 |
Definition at line 110 of file state.h.
Referenced by stateCalcBodyRates_f(), stateCalcBodyRates_i(), stateGetBodyRates_i(), and stateSetBodyRates_i().
void stateCalcBodyRates_f | ( | void | ) |
Definition at line 1082 of file state.c.
References State::body_rates_f, State::body_rates_i, RATE_F, RATE_I, State::rate_status, RATES_FLOAT_OF_BFP, and state.
Referenced by stateGetBodyRates_f().
void stateCalcBodyRates_i | ( | void | ) |
Definition at line 1069 of file state.c.
References State::body_rates_f, State::body_rates_i, RATE_F, RATE_I, State::rate_status, RATES_BFP_OF_REAL, and state.
Referenced by stateGetBodyRates_i().
|
static |
Get vehicle body angular rate (float).
Definition at line 1171 of file state.h.
References State::body_rates_f, RATE_F, State::rate_status, state, and stateCalcBodyRates_f().
Referenced by attitude_run_indi(), CN_potential_heading(), CN_potential_velocity(), h_ctl_pitch_loop(), h_ctl_roll_loop(), lms_estimation(), mavlink_send_attitude(), mavlink_send_attitude_quaternion(), mf_daq_send_state(), parse_mf_daq_msg(), and stabilization_attitude_run().
|
static |
Get vehicle body angular rate (int).
Definition at line 1162 of file state.h.
References State::body_rates_i, RATE_I, State::rate_status, state, and stateCalcBodyRates_i().
Referenced by ctrl_module_run(), stabilization_attitude_run(), and stabilization_rate_run().
|
inlinestatic |
Test if rates are valid.
Definition at line 1136 of file state.h.
References State::rate_status, and state.
|
inlinestatic |
Set vehicle body angular rate (float).
Definition at line 1152 of file state.h.
References State::body_rates_f, RATE_F, State::rate_status, RATES_COPY, and state.
Referenced by ArduIMU_event(), ArduIMU_periodic(), compute_body_orientation_and_rates(), gx3_packet_read_message(), ins_float_invariant_propagate(), ins_vectornav_propagate(), parse_ins_msg(), set_body_orientation_and_rates(), set_body_state_from_quat(), update_ahrs_from_sim(), and vn100_event_task().
|
inlinestatic |
Set vehicle body angular rate (int).
Definition at line 1144 of file state.h.
References State::body_rates_i, RATE_I, State::rate_status, RATES_COPY, and state.
Referenced by gyro_cb(), set_body_state_from_euler(), and set_body_state_from_quat().
struct FloatRates State::body_rates_f |
Angular rates in body frame.
Units: rad/s
Definition at line 379 of file state.h.
Referenced by stateCalcBodyRates_f(), stateCalcBodyRates_i(), stateGetBodyRates_f(), and stateSetBodyRates_f().
struct Int32Rates State::body_rates_i |
Angular rates in body frame.
Units: rad/s in BFP with INT32_RATE_FRAC
Definition at line 373 of file state.h.
Referenced by stateCalcBodyRates_f(), stateCalcBodyRates_i(), stateGetBodyRates_i(), and stateSetBodyRates_i().
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 367 of file state.h.
Referenced by stateCalcBodyRates_f(), stateCalcBodyRates_i(), stateCalcHorizontalWindspeed_f(), stateCalcHorizontalWindspeed_i(), stateGetBodyRates_f(), stateGetBodyRates_i(), stateInit(), stateIsRateValid(), stateSetBodyRates_f(), and stateSetBodyRates_i().