![]() |
Paparazzi UAS v7.0_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 |
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. | ||
Definition at line 1474 of file state.c.
References AIRSPEED_F, State::airspeed_f, AIRSPEED_I, State::airspeed_i, foo, SPEED_FLOAT_OF_BFP, state, and State::wind_air_status.
Referenced by stateGetAirspeed_f().
Definition at line 1428 of file state.c.
References AIRSPEED_F, State::airspeed_f, AIRSPEED_I, State::airspeed_i, foo, SPEED_BFP_OF_REAL, state, and State::wind_air_status.
Referenced by stateGetAirspeed_i().
Definition at line 1443 of file state.c.
References foo, SPEED_FLOAT_OF_BFP, state, State::wind_air_status, WINDSPEED_F, State::windspeed_f, WINDSPEED_I, and State::windspeed_i.
Referenced by stateGetHorizontalWindspeed_f(), and stateGetWindspeed_f().
Definition at line 1397 of file state.c.
References foo, SPEED_BFP_OF_REAL, state, State::wind_air_status, WINDSPEED_F, State::windspeed_f, WINDSPEED_I, and State::windspeed_i.
Referenced by stateGetHorizontalWindspeed_i(), and stateGetWindspeed_i().
Definition at line 1459 of file state.c.
References DOWNWIND_F, DOWNWIND_I, foo, SPEED_FLOAT_OF_BFP, state, State::wind_air_status, State::windspeed_f, and State::windspeed_i.
Referenced by stateGetVerticalWindspeed_f(), and stateGetWindspeed_f().
Definition at line 1413 of file state.c.
References DOWNWIND_F, DOWNWIND_I, foo, SPEED_BFP_OF_REAL, state, State::wind_air_status, State::windspeed_f, and State::windspeed_i.
Referenced by stateGetVerticalWindspeed_i(), and stateGetWindspeed_i().
Get airspeed (float).
Definition at line 1590 of file state.h.
References AIRSPEED_F, State::airspeed_f, foo, state, stateCalcAirspeed_f(), and State::wind_air_status.
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(), rotwing_state_periodic(), schdule_control_effectiveness(), send_airspeed(), snav_on_time(), stabilization_indi_set_wls_settings(), v_ctl_climb_loop(), and wind_estimator_periodic().
Get airspeed (int).
Definition at line 1551 of file state.h.
References AIRSPEED_I, State::airspeed_i, foo, state, stateCalcAirspeed_i(), and State::wind_air_status.
Get angle of attack (float).
Definition at line 1599 of file state.h.
References State::angle_of_attack_f, and state.
Referenced by h_ctl_pitch_loop(), and wind_estimator_periodic().
|
inlinestatic |
Get horizontal windspeed (float).
Definition at line 1560 of file state.h.
References foo, state, stateCalcHorizontalWindspeed_f(), State::wind_air_status, WINDSPEED_F, and State::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 1521 of file state.h.
References foo, state, stateCalcHorizontalWindspeed_i(), State::wind_air_status, WINDSPEED_I, and State::windspeed_i.
Get sideslip (float).
Definition at line 1608 of file state.h.
References State::sideslip_f, and state.
Referenced by wind_estimator_periodic().
Get vertical windspeed (float).
Definition at line 1569 of file state.h.
References DOWNWIND_F, foo, state, stateCalcVerticalWindspeed_f(), State::wind_air_status, and State::windspeed_f.
Get vertical windspeed (int).
Definition at line 1530 of file state.h.
References DOWNWIND_I, foo, state, stateCalcVerticalWindspeed_i(), State::wind_air_status, and State::windspeed_i.
|
inlinestatic |
Get windspeed (float).
Definition at line 1578 of file state.h.
References DOWNWIND_F, foo, state, stateCalcHorizontalWindspeed_f(), stateCalcVerticalWindspeed_f(), State::wind_air_status, WINDSPEED_F, and State::windspeed_f.
|
inlinestatic |
Get windspeed (int).
Definition at line 1539 of file state.h.
References DOWNWIND_I, foo, state, stateCalcHorizontalWindspeed_i(), stateCalcVerticalWindspeed_i(), State::wind_air_status, WINDSPEED_I, and State::windspeed_i.
test if air speed is available.
Definition at line 1411 of file state.h.
References AIRSPEED_F, AIRSPEED_I, state, and State::wind_air_status.
Referenced by get_time_to_home().
test if angle of attack is available.
Definition at line 1417 of file state.h.
References AOA_F, state, and State::wind_air_status.
test if sideslip is available.
Definition at line 1423 of file state.h.
References SIDESLIP_F, state, and State::wind_air_status.
test if vertical wind speed is available.
Definition at line 1405 of file state.h.
References DOWNWIND_F, DOWNWIND_I, state, and State::wind_air_status.
test if wind speed is available.
Definition at line 1399 of file state.h.
References state, State::wind_air_status, WINDSPEED_F, and WINDSPEED_I.
Referenced by get_time_to_home().
Set airspeed (float).
Definition at line 1486 of file state.h.
References AIRSPEED_F, State::airspeed_f, AIRSPEED_I, foo, state, STATE_CHECK_INPUT_AND_RETURN, State::wind_air_input_filter, and State::wind_air_status.
Referenced by air_data_parse_WIND_INFO(), airspeed_adc_update(), airspeed_amsys_read_event(), airspeed_amsys_read_periodic(), airspeed_cb(), airspeed_ets_read_event(), airspeed_ets_read_periodic(), nps_autopilot_run_step(), and pressure_diff_cb().
Set airspeed (int).
Definition at line 1453 of file state.h.
References AIRSPEED_F, AIRSPEED_I, State::airspeed_i, foo, state, STATE_CHECK_INPUT_AND_RETURN, State::wind_air_input_filter, and State::wind_air_status.
Set angle of attack in radians (float).
Definition at line 1497 of file state.h.
References State::angle_of_attack_f, AOA_F, foo, state, STATE_CHECK_INPUT_AND_RETURN, State::wind_air_input_filter, and State::wind_air_status.
Referenced by aoa_adc_update(), and incidence_cb().
|
inlinestatic |
Set horizontal windspeed (float).
Definition at line 1464 of file state.h.
References foo, state, STATE_CHECK_INPUT_AND_RETURN, VECT2_COPY, State::wind_air_input_filter, State::wind_air_status, WINDSPEED_F, State::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 1431 of file state.h.
References foo, state, STATE_CHECK_INPUT_AND_RETURN, VECT2_COPY, State::wind_air_input_filter, State::wind_air_status, WINDSPEED_F, WINDSPEED_I, and State::windspeed_i.
Set sideslip angle in radians (float).
Definition at line 1508 of file state.h.
References foo, SIDESLIP_F, State::sideslip_f, state, STATE_CHECK_INPUT_AND_RETURN, State::wind_air_input_filter, and State::wind_air_status.
Referenced by incidence_cb().
Set vertical windspeed (float).
Definition at line 1475 of file state.h.
References DOWNWIND_F, DOWNWIND_I, foo, state, STATE_CHECK_INPUT_AND_RETURN, State::wind_air_input_filter, State::wind_air_status, and State::windspeed_f.
Referenced by air_data_parse_WIND_INFO(), and wind_estimator_event().
Set vertical windspeed (int).
Definition at line 1442 of file state.h.
References DOWNWIND_F, DOWNWIND_I, foo, state, STATE_CHECK_INPUT_AND_RETURN, State::wind_air_input_filter, State::wind_air_status, and State::windspeed_i.
float State::airspeed_f |
Norm of relative air speed.
Unit: m/s
Definition at line 484 of file state.h.
Referenced by stateCalcAirspeed_f(), stateCalcAirspeed_i(), stateGetAirspeed_f(), and stateSetAirspeed_f().
int32_t State::airspeed_i |
Norm of relative wind speed.
Unit: m/s in BFP with INT32_SPEED_FRAC
Definition at line 469 of file state.h.
Referenced by stateCalcAirspeed_f(), stateCalcAirspeed_i(), stateGetAirspeed_i(), and stateSetAirspeed_i().
float State::angle_of_attack_f |
Angle of attack Unit: rad.
Definition at line 490 of file state.h.
Referenced by stateGetAngleOfAttack_f(), and stateSetAngleOfAttack_f().
float State::sideslip_f |
Sideslip angle Unit: rad.
Definition at line 496 of file state.h.
Referenced by stateGetSideslip_f(), and stateSetSideslip_f().
uint16_t State::wind_air_input_filter |
Holds the input filter id for air data.
Definition at line 454 of file state.h.
Referenced by stateInit(), stateSetAirspeed_f(), stateSetAirspeed_i(), stateSetAngleOfAttack_f(), stateSetHorizontalWindspeed_f(), stateSetHorizontalWindspeed_i(), stateSetInputFilter(), stateSetSideslip_f(), stateSetVerticalWindspeed_f(), and stateSetVerticalWindspeed_i().
uint8_t State::wind_air_status |
Holds the status bits for all wind- and airspeed representations.
When the corresponding bit is one the representation is already computed.
Definition at line 449 of file state.h.
Referenced by stateCalcAirspeed_f(), stateCalcAirspeed_i(), stateCalcHorizontalWindspeed_f(), stateCalcHorizontalWindspeed_i(), stateCalcVerticalWindspeed_f(), stateCalcVerticalWindspeed_i(), stateGetAirspeed_f(), stateGetAirspeed_i(), stateGetHorizontalWindspeed_f(), stateGetHorizontalWindspeed_i(), stateGetVerticalWindspeed_f(), stateGetVerticalWindspeed_i(), stateGetWindspeed_f(), stateGetWindspeed_i(), stateInit(), stateIsAirspeedValid(), stateIsAngleOfAttackValid(), stateIsSideslipValid(), stateIsVerticalWindspeedValid(), stateIsWindspeedValid(), stateSetAirspeed_f(), stateSetAirspeed_i(), stateSetAngleOfAttack_f(), stateSetHorizontalWindspeed_f(), stateSetHorizontalWindspeed_i(), stateSetSideslip_f(), stateSetVerticalWindspeed_f(), and stateSetVerticalWindspeed_i().
union { ... } State::windspeed_f |
Horizontal windspeed.
Units: m/s with x=north, y=east, z=down
Referenced by stateCalcHorizontalWindspeed_f(), stateCalcHorizontalWindspeed_i(), stateCalcVerticalWindspeed_f(), stateCalcVerticalWindspeed_i(), stateGetHorizontalWindspeed_f(), stateGetVerticalWindspeed_f(), stateGetWindspeed_f(), stateSetHorizontalWindspeed_f(), and stateSetVerticalWindspeed_f().
union { ... } State::windspeed_i |
Horizontal windspeed in north/east/down.
Units: m/s in BFP with INT32_SPEED_FRAC
Referenced by stateCalcHorizontalWindspeed_f(), stateCalcHorizontalWindspeed_i(), stateCalcVerticalWindspeed_f(), stateCalcVerticalWindspeed_i(), stateGetHorizontalWindspeed_i(), stateGetVerticalWindspeed_i(), stateGetWindspeed_i(), stateSetHorizontalWindspeed_i(), and stateSetVerticalWindspeed_i().