|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Macros | |
| #define | WINDSPEED_I 0 |
| #define | DOWNWIND_I 1 |
| #define | AIRSPEED_I 2 |
| #define | WINDSPEED_F 3 |
| #define | DOWNWIND_F 4 |
| #define | AIRSPEED_F 5 |
| #define | AOA_F 6 |
| #define | SIDESLIP_F 7 |
Functions | |
| void | stateCalcHorizontalWindspeed_i (void) |
| void | stateCalcVerticalWindspeed_i (void) |
| void | stateCalcAirspeed_i (void) |
| void | stateCalcHorizontalWindspeed_f (void) |
| void | stateCalcVerticalWindspeed_f (void) |
| void | stateCalcAirspeed_f (void) |
| static bool | stateIsWindspeedValid (void) |
| test if wind speed is available. | |
| static bool | stateIsVerticalWindspeedValid (void) |
| test if vertical wind speed is available. | |
| static bool | stateIsAirspeedValid (void) |
| test if air speed is available. | |
| static bool | stateIsAngleOfAttackValid (void) |
| test if angle of attack is available. | |
| static bool | stateIsSideslipValid (void) |
| test if sideslip is available. | |
| static void | stateSetHorizontalWindspeed_i (uint16_t id, struct Int32Vect2 *h_windspeed) |
| Set horizontal windspeed (int). | |
| static void | stateSetVerticalWindspeed_i (uint16_t id, int32_t v_windspeed) |
| Set vertical windspeed (int). | |
| static void | stateSetAirspeed_i (uint16_t id, int32_t airspeed) |
| Set airspeed (int). | |
| static void | stateSetHorizontalWindspeed_f (uint16_t id, struct FloatVect2 *h_windspeed) |
| Set horizontal windspeed (float). | |
| static void | stateSetVerticalWindspeed_f (uint16_t id, float v_windspeed) |
| Set vertical windspeed (float). | |
| static void | stateSetAirspeed_f (uint16_t id, float airspeed) |
| Set airspeed (float). | |
| static void | stateSetAngleOfAttack_f (uint16_t id, float aoa) |
| Set angle of attack in radians (float). | |
| static void | stateSetSideslip_f (uint16_t id, float sideslip) |
| Set sideslip angle in radians (float). | |
| static struct Int32Vect2 * | stateGetHorizontalWindspeed_i (void) |
| Get horizontal windspeed (int). | |
| static float | stateGetVerticalWindspeed_i (void) |
| Get vertical windspeed (int). | |
| static struct Int32Vect3 * | stateGetWindspeed_i (void) |
| Get windspeed (int). | |
| static int32_t | stateGetAirspeed_i (void) |
| Get airspeed (int). | |
| static struct FloatVect2 * | stateGetHorizontalWindspeed_f (void) |
| Get horizontal windspeed (float). | |
| static float | stateGetVerticalWindspeed_f (void) |
| Get vertical windspeed (float). | |
| static struct FloatVect3 * | stateGetWindspeed_f (void) |
| Get windspeed (float). | |
| static float | stateGetAirspeed_f (void) |
| Get airspeed (float). | |
| static float | stateGetAngleOfAttack_f (void) |
| Get angle of attack (float). | |
| static float | stateGetSideslip_f (void) |
| Get sideslip (float). | |
Variables | |
| uint8_t | State::wind_air_status |
| Holds the status bits for all wind- and airspeed representations. | |
| uint16_t | State::wind_air_input_filter |
| Holds the input filter id for air data. | |
| union { | |
| struct Int32Vect3 | vect3 |
| struct Int32Vect2 | vect2 |
| } | State::windspeed_i |
| Horizontal windspeed in north/east/down. | |
| int32_t | State::airspeed_i |
| Norm of relative wind speed. | |
| union { | |
| struct FloatVect3 | vect3 |
| struct FloatVect2 | vect2 |
| } | State::windspeed_f |
| Horizontal windspeed. | |
| float | State::airspeed_f |
| Norm of relative air speed. | |
| float | State::angle_of_attack_f |
| Angle of attack Unit: rad. | |
| float | State::sideslip_f |
| Sideslip angle Unit: rad. | |
| #define AIRSPEED_F 5 |
Definition at line 129 of file state.h.
Referenced by stateCalcAirspeed_f(), stateCalcAirspeed_i(), stateGetAirspeed_f(), stateIsAirspeedValid(), stateSetAirspeed_f(), and stateSetAirspeed_i().
| #define AIRSPEED_I 2 |
Definition at line 126 of file state.h.
Referenced by stateCalcAirspeed_f(), stateCalcAirspeed_i(), stateGetAirspeed_i(), stateIsAirspeedValid(), stateSetAirspeed_f(), and stateSetAirspeed_i().
| #define AOA_F 6 |
Definition at line 130 of file state.h.
Referenced by stateIsAngleOfAttackValid(), and stateSetAngleOfAttack_f().
| #define DOWNWIND_F 4 |
Definition at line 128 of file state.h.
Referenced by stateCalcVerticalWindspeed_f(), stateCalcVerticalWindspeed_i(), stateGetVerticalWindspeed_f(), stateGetWindspeed_f(), stateIsVerticalWindspeedValid(), stateSetVerticalWindspeed_f(), and stateSetVerticalWindspeed_i().
| #define DOWNWIND_I 1 |
Definition at line 125 of file state.h.
Referenced by stateCalcVerticalWindspeed_f(), stateCalcVerticalWindspeed_i(), stateGetVerticalWindspeed_i(), stateGetWindspeed_i(), stateIsVerticalWindspeedValid(), stateSetVerticalWindspeed_f(), and stateSetVerticalWindspeed_i().
| #define SIDESLIP_F 7 |
Definition at line 131 of file state.h.
Referenced by stateIsSideslipValid(), and stateSetSideslip_f().
| #define WINDSPEED_F 3 |
Definition at line 127 of file state.h.
Referenced by stateCalcHorizontalWindspeed_f(), stateCalcHorizontalWindspeed_i(), stateGetHorizontalWindspeed_f(), stateGetWindspeed_f(), stateIsWindspeedValid(), stateSetHorizontalWindspeed_f(), and stateSetHorizontalWindspeed_i().
| #define WINDSPEED_I 0 |
Definition at line 124 of file state.h.
Referenced by stateCalcHorizontalWindspeed_f(), stateCalcHorizontalWindspeed_i(), stateGetHorizontalWindspeed_i(), stateGetWindspeed_i(), stateIsWindspeedValid(), stateSetHorizontalWindspeed_f(), and stateSetHorizontalWindspeed_i().
| void stateCalcAirspeed_f | ( | void | ) |
Definition at line 1480 of file state.c.
References AIRSPEED_F, AIRSPEED_I, SPEED_FLOAT_OF_BFP, and state.
Referenced by stateGetAirspeed_f().
| void stateCalcAirspeed_i | ( | void | ) |
Definition at line 1434 of file state.c.
References AIRSPEED_F, AIRSPEED_I, SPEED_BFP_OF_REAL, and state.
Referenced by stateGetAirspeed_i().
| void stateCalcHorizontalWindspeed_f | ( | void | ) |
Definition at line 1449 of file state.c.
References SPEED_FLOAT_OF_BFP, state, WINDSPEED_F, and WINDSPEED_I.
Referenced by stateGetHorizontalWindspeed_f(), and stateGetWindspeed_f().
| void stateCalcHorizontalWindspeed_i | ( | void | ) |
Definition at line 1403 of file state.c.
References SPEED_BFP_OF_REAL, state, WINDSPEED_F, and WINDSPEED_I.
Referenced by stateGetHorizontalWindspeed_i(), and stateGetWindspeed_i().
| void stateCalcVerticalWindspeed_f | ( | void | ) |
Definition at line 1465 of file state.c.
References DOWNWIND_F, DOWNWIND_I, SPEED_FLOAT_OF_BFP, and state.
Referenced by stateGetVerticalWindspeed_f(), and stateGetWindspeed_f().
| void stateCalcVerticalWindspeed_i | ( | void | ) |
Definition at line 1419 of file state.c.
References DOWNWIND_F, DOWNWIND_I, SPEED_BFP_OF_REAL, and state.
Referenced by stateGetVerticalWindspeed_i(), and stateGetWindspeed_i().
|
inlinestatic |
Get airspeed (float).
Definition at line 1615 of file state.h.
References AIRSPEED_F, state, and stateCalcAirspeed_f().
Referenced by air_data_parse_WIND_INFO(), bound_vz_sp(), compute_accel_from_speed_sp(), ctrl_eff_scheduling_periodic(), eff_scheduling_falcon_periodic(), eff_scheduling_periodic_b(), eff_scheduling_rotwing_update_airspeed(), ekf_aw_wrapper_fetch(), flight_benchmark_periodic(), follow_diagonal_approach(), generic_com_periodic(), get_time_to_home(), guidance_indi_calcg_wing(), guidance_indi_hybrid_set_wls_settings(), guidance_indi_propagate_filters(), guidance_indi_run(), logger_control_effectiveness_periodic(), mavlink_send_vfr_hud(), nav_bungee_takeoff_run(), oneloop_andi_propagate_filters(), oneloop_nB_propagate_filters(), rotwing_state_periodic(), schdule_control_effectiveness(), send_airspeed(), snav_on_time(), stabilization_indi_set_wls_settings(), transition_run(), v_ctl_climb_loop(), and wind_estimator_periodic().
|
inlinestatic |
Get airspeed (int).
Definition at line 1576 of file state.h.
References AIRSPEED_I, state, and stateCalcAirspeed_i().
|
inlinestatic |
Get angle of attack (float).
Definition at line 1624 of file state.h.
References state.
Referenced by h_ctl_pitch_loop(), and wind_estimator_periodic().
|
inlinestatic |
Get horizontal windspeed (float).
Definition at line 1585 of file state.h.
References state, stateCalcHorizontalWindspeed_f(), and WINDSPEED_F.
Referenced by compute_TOD(), get_time_to_home(), gls_compute_TOD(), mf_daq_send_state(), nav_survey_disc_run(), parse_mf_daq_msg(), and snav_on_time().
|
inlinestatic |
Get horizontal windspeed (int).
Definition at line 1546 of file state.h.
References state, stateCalcHorizontalWindspeed_i(), and WINDSPEED_I.
|
inlinestatic |
Get sideslip (float).
Definition at line 1633 of file state.h.
References state.
Referenced by wind_estimator_periodic().
|
inlinestatic |
Get vertical windspeed (float).
Definition at line 1594 of file state.h.
References DOWNWIND_F, state, and stateCalcVerticalWindspeed_f().
|
inlinestatic |
Get vertical windspeed (int).
Definition at line 1555 of file state.h.
References DOWNWIND_I, state, and stateCalcVerticalWindspeed_i().
|
inlinestatic |
Get windspeed (float).
Definition at line 1603 of file state.h.
References DOWNWIND_F, state, stateCalcHorizontalWindspeed_f(), stateCalcVerticalWindspeed_f(), and WINDSPEED_F.
|
inlinestatic |
Get windspeed (int).
Definition at line 1564 of file state.h.
References DOWNWIND_I, state, stateCalcHorizontalWindspeed_i(), stateCalcVerticalWindspeed_i(), and WINDSPEED_I.
|
inlinestatic |
test if air speed is available.
Definition at line 1436 of file state.h.
References AIRSPEED_F, AIRSPEED_I, and state.
Referenced by get_time_to_home(), and transition_run().
|
inlinestatic |
|
inlinestatic |
test if sideslip is available.
Definition at line 1448 of file state.h.
References SIDESLIP_F, and state.
|
inlinestatic |
test if vertical wind speed is available.
Definition at line 1430 of file state.h.
References DOWNWIND_F, DOWNWIND_I, and state.
|
inlinestatic |
test if wind speed is available.
Definition at line 1424 of file state.h.
References state, WINDSPEED_F, and WINDSPEED_I.
Referenced by get_time_to_home().
|
inlinestatic |
Set airspeed (float).
Definition at line 1511 of file state.h.
References AIRSPEED_F, AIRSPEED_I, state, and STATE_CHECK_INPUT_AND_RETURN.
Referenced by air_data_parse_WIND_INFO(), air_data_set_airspeed(), and nps_autopilot_run_step().
Set airspeed (int).
Definition at line 1478 of file state.h.
References AIRSPEED_F, AIRSPEED_I, state, and STATE_CHECK_INPUT_AND_RETURN.
|
inlinestatic |
Set angle of attack in radians (float).
Definition at line 1522 of file state.h.
References AOA_F, state, and STATE_CHECK_INPUT_AND_RETURN.
Referenced by aoa_adc_update(), and incidence_cb().
|
inlinestatic |
Set horizontal windspeed (float).
Definition at line 1489 of file state.h.
References state, STATE_CHECK_INPUT_AND_RETURN, VECT2_COPY, WINDSPEED_F, and WINDSPEED_I.
Referenced by air_data_parse_WIND_INFO(), wind_estimation_quadrotor_periodic(), wind_estimation_quadrotor_stop(), and wind_estimator_event().
|
inlinestatic |
Set horizontal windspeed (int).
Definition at line 1456 of file state.h.
References state, STATE_CHECK_INPUT_AND_RETURN, VECT2_COPY, WINDSPEED_F, and WINDSPEED_I.
|
inlinestatic |
Set sideslip angle in radians (float).
Definition at line 1533 of file state.h.
References SIDESLIP_F, state, and STATE_CHECK_INPUT_AND_RETURN.
Referenced by incidence_cb().
|
inlinestatic |
Set vertical windspeed (float).
Definition at line 1500 of file state.h.
References DOWNWIND_F, DOWNWIND_I, state, and STATE_CHECK_INPUT_AND_RETURN.
Referenced by air_data_parse_WIND_INFO(), and wind_estimator_event().
Set vertical windspeed (int).
Definition at line 1467 of file state.h.
References DOWNWIND_F, DOWNWIND_I, state, and STATE_CHECK_INPUT_AND_RETURN.
| float State::airspeed_f |
| int32_t State::airspeed_i |
Norm of relative wind speed.
Unit: m/s in BFP with INT32_SPEED_FRAC
| uint16_t State::wind_air_input_filter |
| uint8_t State::wind_air_status |
| union { ... } State::windspeed_f |
Horizontal windspeed.
Units: m/s with x=north, y=east, z=down
| union { ... } State::windspeed_i |
Horizontal windspeed in north/east/down.
Units: m/s in BFP with INT32_SPEED_FRAC