ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
alt_est_t Struct Reference

#include <alt_est.h>

Collaboration diagram for alt_est_t:
[legend]

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

 

Detailed Description

Definition at line 40 of file alt_est.h.

Field Documentation

◆ c

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().

◆ x

float alt_est_t::x[4]

◆ P

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().

◆ p_ref

float alt_est_t::p_ref

baro

Pa at the reference

Definition at line 45 of file alt_est.h.

Referenced by alt_est_baro().

◆ p_sum

float alt_est_t::p_sum

Definition at line 46 of file alt_est.h.

Referenced by alt_est_baro().

◆ p_n

uint16_t alt_est_t::p_n

Definition at line 46 of file alt_est.h.

Referenced by alt_est_baro().

◆ baro_ok

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().

◆ baro_alt

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().

◆ pressure

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().

◆ ground

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().

◆ tof_h

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().

◆ tof_valid

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().

◆ tof_ground

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().

◆ tof_rejects

uint8_t alt_est_t::tof_rejects

Definition at line 55 of file alt_est.h.

Referenced by alt_est_tof().

◆ tof_age_s

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().

◆ have_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().

◆ valid

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().


The documentation for this struct was generated from the following file: