Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Macros | |
#define | ACCEL_ECEF_I 0 |
#define | ACCEL_NED_I 1 |
#define | ACCEL_ECEF_F 2 |
#define | ACCEL_NED_F 3 |
Functions | |
void | stateCalcAccelNed_i (void) |
void | stateCalcAccelEcef_i (void) |
void | stateCalcAccelNed_f (void) |
void | stateCalcAccelEcef_f (void) |
static bool_t | stateIsAccelValid (void) |
Test if accelerations are valid. More... | |
static void | stateSetAccelNed_i (struct NedCoor_i *ned_accel) |
Set acceleration in NED coordinates (int). More... | |
static void | stateSetAccelEcef_i (struct EcefCoor_i *ecef_accel) |
Set acceleration in ECEF coordinates (int). More... | |
static void | stateSetAccelNed_f (struct NedCoor_f *ned_accel) |
Set acceleration in NED coordinates (float). More... | |
static void | stateSetAccelEcef_f (struct EcefCoor_f *ecef_accel) |
Set acceleration in ECEF coordinates (float). More... | |
static struct NedCoor_i * | stateGetAccelNed_i (void) |
Get acceleration in NED coordinates (int). More... | |
static struct EcefCoor_i * | stateGetAccelEcef_i (void) |
Get acceleration in ECEF coordinates (int). More... | |
static struct NedCoor_f * | stateGetAccelNed_f (void) |
Get acceleration in NED coordinates (float). More... | |
static struct EcefCoor_f * | stateGetAccelEcef_f (void) |
Get acceleration in ECEF coordinates (float). More... | |
Variables | |
uint8_t | State::accel_status |
Holds the status bits for all acceleration representations. More... | |
struct NedCoor_i | State::ned_accel_i |
Acceleration in North East Down coordinates. More... | |
struct EcefCoor_i | State::ecef_accel_i |
Acceleration in EarthCenteredEarthFixed coordinates. More... | |
struct NedCoor_f | State::ned_accel_f |
Acceleration in North East Down coordinates. More... | |
struct EcefCoor_f | State::ecef_accel_f |
Acceleration in EarthCenteredEarthFixed coordinates. More... | |
#define ACCEL_ECEF_F 2 |
Definition at line 102 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelEcef_f(), and stateSetAccelEcef_f().
#define ACCEL_ECEF_I 0 |
Definition at line 100 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelEcef_i(), and stateSetAccelEcef_i().
#define ACCEL_NED_F 3 |
Definition at line 103 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelNed_f(), stateSetAccelNed_f(), and stateSetLocalUtmOrigin_f().
#define ACCEL_NED_I 1 |
Definition at line 101 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelNed_i(), stateSetAccelNed_i(), and stateSetLocalUtmOrigin_f().
void stateCalcAccelEcef_f | ( | void | ) |
Definition at line 1036 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, State::accel_status, ACCELS_FLOAT_OF_BFP, State::ecef_accel_f, ecef_of_ned_vect_f(), State::ned_accel_f, State::ned_accel_i, State::ned_origin_f, and state.
Referenced by stateGetAccelEcef_f().
void stateCalcAccelEcef_i | ( | void | ) |
Definition at line 981 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, State::accel_status, ACCELS_BFP_OF_REAL, State::ecef_accel_f, State::ecef_accel_i, ecef_of_ned_vect_i(), State::ned_accel_f, State::ned_accel_i, State::ned_origin_i, and state.
Referenced by stateGetAccelEcef_i().
void stateCalcAccelNed_f | ( | void | ) |
Definition at line 1005 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, State::accel_status, ACCELS_FLOAT_OF_BFP, State::ecef_accel_f, State::ecef_accel_i, State::ned_accel_f, State::ned_accel_i, State::ned_initialized_f, ned_of_ecef_vect_f(), State::ned_origin_f, and state.
Referenced by stateGetAccelNed_f().
void stateCalcAccelNed_i | ( | void | ) |
Definition at line 950 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, State::accel_status, ACCELS_BFP_OF_REAL, State::ecef_accel_f, State::ecef_accel_i, State::ned_accel_f, State::ned_accel_i, State::ned_initialized_i, ned_of_ecef_vect_i(), State::ned_origin_i, and state.
Referenced by stateGetAccelNed_i().
|
static |
Get acceleration in ECEF coordinates (float).
Definition at line 1018 of file state.h.
References ACCEL_ECEF_F, State::accel_status, State::ecef_accel_f, state, and stateCalcAccelEcef_f().
|
static |
Get acceleration in ECEF coordinates (int).
Definition at line 1000 of file state.h.
References ACCEL_ECEF_I, State::accel_status, State::ecef_accel_i, state, and stateCalcAccelEcef_i().
|
static |
Get acceleration in NED coordinates (float).
Definition at line 1009 of file state.h.
References ACCEL_NED_F, State::accel_status, State::ned_accel_f, state, and stateCalcAccelNed_f().
Referenced by autopilot_check_in_flight(), DetectGroundEvent(), guidance_indi_filter_accel(), mf_daq_send_state(), and parse_mf_daq_msg().
|
static |
Get acceleration in NED coordinates (int).
Definition at line 991 of file state.h.
References ACCEL_NED_I, State::accel_status, State::ned_accel_i, state, and stateCalcAccelNed_i().
Referenced by guidance_v_run(), and ins_vectornav_propagate().
|
inlinestatic |
Test if accelerations are valid.
Definition at line 949 of file state.h.
References State::accel_status, and state.
|
inlinestatic |
Set acceleration in ECEF coordinates (float).
Definition at line 981 of file state.h.
References ACCEL_ECEF_F, State::accel_status, State::ecef_accel_f, state, and VECT3_COPY.
|
inlinestatic |
Set acceleration in ECEF coordinates (int).
Definition at line 965 of file state.h.
References ACCEL_ECEF_I, State::accel_status, State::ecef_accel_i, state, and VECT3_COPY.
|
inlinestatic |
Set acceleration in NED coordinates (float).
Definition at line 973 of file state.h.
References ACCEL_NED_F, State::accel_status, State::ned_accel_f, state, and VECT3_COPY.
Referenced by ArduIMU_event(), ins_float_invariant_propagate(), and ins_vectornav_propagate().
|
inlinestatic |
Set acceleration in NED coordinates (int).
Definition at line 957 of file state.h.
References ACCEL_NED_I, State::accel_status, State::ned_accel_i, state, and VECT3_COPY.
Referenced by accel_cb(), and ins_ned_to_state().
uint8_t State::accel_status |
Holds the status bits for all acceleration representations.
When the corresponding bit is one the representation is already computed.
Definition at line 327 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelEcef_f(), stateGetAccelEcef_i(), stateGetAccelNed_f(), stateGetAccelNed_i(), stateInit(), stateIsAccelValid(), stateSetAccelEcef_f(), stateSetAccelEcef_i(), stateSetAccelNed_f(), stateSetAccelNed_i(), and stateSetLocalUtmOrigin_f().
struct EcefCoor_f State::ecef_accel_f |
Acceleration in EarthCenteredEarthFixed coordinates.
Units: m/s^2
Definition at line 351 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelEcef_f(), and stateSetAccelEcef_f().
struct EcefCoor_i State::ecef_accel_i |
Acceleration in EarthCenteredEarthFixed coordinates.
Units: m/s^2 in BFP with INT32_ACCEL_FRAC
Definition at line 339 of file state.h.
Referenced by stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelEcef_i(), and stateSetAccelEcef_i().
struct NedCoor_f State::ned_accel_f |
Acceleration in North East Down coordinates.
Units: m/s^2
Definition at line 345 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelNed_f(), and stateSetAccelNed_f().
struct NedCoor_i State::ned_accel_i |
Acceleration in North East Down coordinates.
Units: m/s^2 in BFP with INT32_ACCEL_FRAC
Definition at line 333 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelNed_i(), and stateSetAccelNed_i().