![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
#include <alt_est.h>
Data Fields | |
| alt_est_cfg_t | c |
| float | x [4] |
| float | P [4][4] |
| float | p_ref |
| baro | |
| float | p_sum |
| uint16_t | p_n |
| uint8_t | baro_ok |
| float | baro_alt |
| last baro altitude (m, p_ref based) | |
| float | pressure |
| last Pa | |
| float | ground |
| ToF. | |
| float | tof_h |
| last height above the floor (m) | |
| uint8_t | tof_valid |
| last ToF sample used | |
| uint8_t | tof_ground |
| below the minimum range: on the floor | |
| uint8_t | tof_rejects |
| float | tof_age_s |
| since the last valid ToF sample | |
| uint8_t | have_tof |
| a ToF sample was used at least once | |
| uint8_t | valid |
| an altitude source is initialised | |
| alt_est_cfg_t alt_est_t::c |
Definition at line 41 of file alt_est.h.
Referenced by alt_est_baro(), alt_est_init(), alt_est_predict(), and alt_est_tof().
| float alt_est_t::x[4] |
Definition at line 42 of file alt_est.h.
Referenced by alt_est_baro(), alt_est_h(), alt_est_predict(), alt_est_tof(), alt_est_vz(), alt_est_zero(), and update().
| float alt_est_t::P[4][4] |
Definition at line 43 of file alt_est.h.
Referenced by alt_est_init(), alt_est_predict(), and update().
| float alt_est_t::p_ref |
| float alt_est_t::p_sum |
Definition at line 46 of file alt_est.h.
Referenced by alt_est_baro().
| uint16_t alt_est_t::p_n |
Definition at line 46 of file alt_est.h.
Referenced by alt_est_baro().
| uint8_t alt_est_t::baro_ok |
Definition at line 47 of file alt_est.h.
Referenced by alt_est_baro(), log_records(), and publish_est().
| float alt_est_t::baro_alt |
last baro altitude (m, p_ref based)
Definition at line 48 of file alt_est.h.
Referenced by alt_est_baro().
| float alt_est_t::pressure |
last Pa
Definition at line 49 of file alt_est.h.
Referenced by alt_est_baro(), log_records(), and publish_est().
| float alt_est_t::ground |
ToF.
floor level in the h frame
Definition at line 51 of file alt_est.h.
Referenced by alt_est_tof(), and alt_est_zero().
| float alt_est_t::tof_h |
last height above the floor (m)
Definition at line 52 of file alt_est.h.
Referenced by alt_est_tof(), flight_service(), publish_est(), and take_ext().
| uint8_t alt_est_t::tof_valid |
last ToF sample used
Definition at line 53 of file alt_est.h.
Referenced by alt_est_tof(), flight_service(), publish_est(), and take_ext().
| uint8_t alt_est_t::tof_ground |
below the minimum range: on the floor
Definition at line 54 of file alt_est.h.
Referenced by alt_est_tof(), flight_service(), publish_est(), and take_ext().
| uint8_t alt_est_t::tof_rejects |
Definition at line 55 of file alt_est.h.
Referenced by alt_est_tof().
| float alt_est_t::tof_age_s |
since the last valid ToF sample
Definition at line 56 of file alt_est.h.
Referenced by alt_est_init(), alt_est_predict(), and alt_est_tof().
| uint8_t alt_est_t::have_tof |
a ToF sample was used at least once
Definition at line 57 of file alt_est.h.
Referenced by alt_est_tof().
| uint8_t alt_est_t::valid |
an altitude source is initialised
Definition at line 58 of file alt_est.h.
Referenced by alt_est_baro(), alt_est_tof(), flight_service(), and publish_est().