|
Paparazzi UAS v7.1_unstable
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 | stateIsAccelValid (void) |
| Test if accelerations are valid. | |
| static void | stateSetAccelNed_i (uint16_t id, struct NedCoor_i *ned_accel) |
| Set acceleration in NED coordinates (int). | |
| static void | stateSetAccelEcef_i (uint16_t id, struct EcefCoor_i *ecef_accel) |
| Set acceleration in ECEF coordinates (int). | |
| static void | stateSetAccelNed_f (uint16_t id, struct NedCoor_f *ned_accel) |
| Set acceleration in NED coordinates (float). | |
| static void | stateSetAccelEcef_f (uint16_t id, struct EcefCoor_f *ecef_accel) |
| Set acceleration in ECEF coordinates (float). | |
| static void | stateSetAccelBody_i (uint16_t id, struct Int32Vect3 *body_accel) |
| Set acceleration in Body coordinates (int). | |
| static struct NedCoor_i * | stateGetAccelNed_i (void) |
| Get acceleration in NED coordinates (int). | |
| static struct EcefCoor_i * | stateGetAccelEcef_i (void) |
| Get acceleration in ECEF coordinates (int). | |
| static struct NedCoor_f * | stateGetAccelNed_f (void) |
| Get acceleration in NED coordinates (float). | |
| static struct EcefCoor_f * | stateGetAccelEcef_f (void) |
| Get acceleration in ECEF coordinates (float). | |
Variables | |
| uint8_t | State::accel_status |
| Holds the status bits for all acceleration representations. | |
| uint16_t | State::accel_input_filter |
| Holds the input filter id for acceleration. | |
| struct Int32Vect3 | State::body_accel_i |
| Acceleration in Body coordinates. | |
| struct NedCoor_i | State::ned_accel_i |
| Acceleration in North East Down coordinates. | |
| struct EcefCoor_i | State::ecef_accel_i |
| Acceleration in EarthCenteredEarthFixed coordinates. | |
| struct NedCoor_f | State::ned_accel_f |
| Acceleration in North East Down coordinates. | |
| struct EcefCoor_f | State::ecef_accel_f |
| Acceleration in EarthCenteredEarthFixed coordinates. | |
| #define ACCEL_ECEF_F 2 |
Definition at line 108 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 106 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 109 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelNed_f(), stateSetAccelNed_f(), stateSetLocalOrigin_i(), and stateSetLocalUtmOrigin_f().
| #define ACCEL_NED_I 1 |
Definition at line 107 of file state.h.
Referenced by stateCalcAccelEcef_f(), stateCalcAccelEcef_i(), stateCalcAccelNed_f(), stateCalcAccelNed_i(), stateGetAccelNed_i(), stateSetAccelNed_i(), stateSetLocalOrigin_i(), and stateSetLocalUtmOrigin_f().
| void stateCalcAccelEcef_f | ( | void | ) |
Definition at line 1321 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, ACCELS_FLOAT_OF_BFP, ecef_of_ned_vect_f(), and state.
Referenced by stateGetAccelEcef_f().
| void stateCalcAccelEcef_i | ( | void | ) |
Definition at line 1256 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, ACCELS_BFP_OF_REAL, ecef_of_ned_vect_i(), and state.
Referenced by stateGetAccelEcef_i().
| void stateCalcAccelNed_f | ( | void | ) |
Definition at line 1288 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, ACCELS_FLOAT_OF_BFP, ned_of_ecef_vect_f(), and state.
Referenced by stateGetAccelNed_f().
| void stateCalcAccelNed_i | ( | void | ) |
Definition at line 1223 of file state.c.
References ACCEL_ECEF_F, ACCEL_ECEF_I, ACCEL_NED_F, ACCEL_NED_I, ACCELS_BFP_OF_REAL, ned_of_ecef_vect_i(), and state.
Referenced by stateGetAccelNed_i().
|
inlinestatic |
Get acceleration in ECEF coordinates (float).
Definition at line 1223 of file state.h.
References ACCEL_ECEF_F, state, and stateCalcAccelEcef_f().
|
inlinestatic |
Get acceleration in ECEF coordinates (int).
Definition at line 1205 of file state.h.
References ACCEL_ECEF_I, state, and stateCalcAccelEcef_i().
|
inlinestatic |
Get acceleration in NED coordinates (float).
Definition at line 1214 of file state.h.
References ACCEL_NED_F, state, and stateCalcAccelNed_f().
Referenced by autopilot_ground_detection(), autopilot_in_flight_end_detection(), decawave_anchorless_communication_periodic(), ground_detect_filter_accel(), guidance_indi_propagate_filters(), guidance_indi_propagate_filters(), mf_daq_send_state(), nav_catapult_highrate_module(), oneloop_andi_propagate_filters(), oneloop_nB_propagate_filters(), parse_mf_daq_msg(), range_msg_callback(), and wind_estimator_periodic().
|
inlinestatic |
Get acceleration in NED coordinates (int).
Definition at line 1196 of file state.h.
References ACCEL_NED_I, state, and stateCalcAccelNed_i().
Referenced by ekf_aw_wrapper_fetch(), guidance_v_thrust_adapt(), ins_vectornav_propagate(), send_hover_loop(), send_vert_loop(), and stabilization_attitude_run().
|
inlinestatic |
|
inlinestatic |
Set acceleration in Body coordinates (int).
Definition at line 1186 of file state.h.
References state, STATE_CHECK_INPUT_AND_RETURN, and VECT3_COPY.
Referenced by accel_cb(), accel_cb(), ekf_run(), ins_ekf2_publish_attitude(), ins_float_invariant_propagate(), ins_int_propagate(), and ins_module_propagate().
|
inlinestatic |
Set acceleration in ECEF coordinates (float).
Definition at line 1176 of file state.h.
References ACCEL_ECEF_F, state, STATE_CHECK_INPUT_AND_RETURN, and VECT3_COPY.
|
inlinestatic |
Set acceleration in ECEF coordinates (int).
Definition at line 1156 of file state.h.
References ACCEL_ECEF_I, state, STATE_CHECK_INPUT_AND_RETURN, and VECT3_COPY.
Set acceleration in NED coordinates (float).
Definition at line 1166 of file state.h.
References ACCEL_NED_F, state, STATE_CHECK_INPUT_AND_RETURN, and VECT3_COPY.
Referenced by ArduIMU_event(), ekf_run(), ins_ekf2_update(), ins_float_invariant_propagate(), ins_vectornav_propagate(), set_state_from_ins(), and sim_overwrite_ins().
Set acceleration in NED coordinates (int).
Definition at line 1146 of file state.h.
References ACCEL_NED_I, state, STATE_CHECK_INPUT_AND_RETURN, and VECT3_COPY.
Referenced by accel_cb(), accel_cb(), ins_ned_to_state(), and ins_ned_to_state().
| uint16_t State::accel_input_filter |
| uint8_t State::accel_status |
| struct Int32Vect3 State::body_accel_i |
Acceleration in Body coordinates.
Units: m/s^2 in BFP with INT32_ACCEL_FRAC
| struct EcefCoor_f State::ecef_accel_f |
| struct EcefCoor_i State::ecef_accel_i |
| struct NedCoor_f State::ned_accel_f |
| struct NedCoor_i State::ned_accel_i |
Acceleration in North East Down coordinates.
Units: m/s^2 in BFP with INT32_ACCEL_FRAC