Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the source code of this file.
Macros | |
#define | BARO_AMSYS_DT BARO_AMSYS_READ_PERIODIC_PERIOD |
new measurement every baro_amsys_read_periodic More... | |
#define | BaroAmsysEvent() { if (baro_amsys_i2c_trans.status == I2CTransSuccess) baro_amsys_read_event(); } |
Functions | |
void | baro_amsys_init (void) |
void | baro_amsys_read_periodic (void) |
void | baro_amsys_read_event (void) |
Variables | |
uint16_t | baro_amsys_adc |
bool | baro_amsys_valid |
bool | baro_amsys_enabled |
float | baro_amsys_altitude |
float | baro_amsys_r |
float | baro_amsys_sigma2 |
float | baro_filter |
struct i2c_transaction | baro_amsys_i2c_trans |
#define BARO_AMSYS_DT BARO_AMSYS_READ_PERIODIC_PERIOD |
new measurement every baro_amsys_read_periodic
Definition at line 32 of file baro_amsys.h.
#define BaroAmsysEvent | ( | ) | { if (baro_amsys_i2c_trans.status == I2CTransSuccess) baro_amsys_read_event(); } |
Definition at line 49 of file baro_amsys.h.
void baro_amsys_init | ( | void | ) |
Definition at line 97 of file baro_amsys.c.
References baro_amsys_altitude, baro_amsys_cnt, baro_amsys_enabled, BARO_AMSYS_FILTER, baro_amsys_i2c_trans, baro_amsys_offset, baro_amsys_offset_init, BARO_AMSYS_OFFSET_NBSAMPLES_AVRG, BARO_AMSYS_OFFSET_NBSAMPLES_INIT, baro_amsys_offset_tmp, baro_amsys_p, BARO_AMSYS_R, baro_amsys_r, BARO_AMSYS_SCALE, BARO_AMSYS_SIGMA2, baro_amsys_sigma2, baro_amsys_valid, baro_filter, baro_scale, I2CTransDone, pBaroRaw, ref_alt_init, i2c_transaction::status, and tBaroRaw.
void baro_amsys_read_event | ( | void | ) |
Definition at line 138 of file baro_amsys.c.
References baro_amsys_abs_altitude, baro_amsys_adc, baro_amsys_altitude, baro_amsys_cnt, baro_amsys_i2c_trans, BARO_AMSYS_MAX_PRESSURE, baro_amsys_offset, baro_amsys_offset_init, BARO_AMSYS_OFFSET_MAX, BARO_AMSYS_OFFSET_MIN, BARO_AMSYS_OFFSET_NBSAMPLES_AVRG, baro_amsys_offset_tmp, baro_amsys_p, BARO_AMSYS_SENDER_ID, baro_amsys_temp, baro_amsys_valid, baro_filter, baro_old, baro_scale, i2c_transaction::buf, I2CTransDone, pBaroRaw, ref_alt_init, i2c_transaction::status, and tBaroRaw.
void baro_amsys_read_periodic | ( | void | ) |
Definition at line 118 of file baro_amsys.c.
References baro_amsys_abs_altitude, BARO_AMSYS_ADDR, baro_amsys_altitude, BARO_AMSYS_I2C_DEV, baro_amsys_i2c_trans, baro_amsys_offset, baro_amsys_p, baro_amsys_temp, DefaultChannel, DefaultDevice, i2c_receive(), I2CTransDone, pBaroRaw, ref_alt_init, and i2c_transaction::status.
uint16_t baro_amsys_adc |
Definition at line 73 of file baro_amsys.c.
Referenced by baro_amsys_read_event().
float baro_amsys_altitude |
Definition at line 76 of file baro_amsys.c.
Referenced by baro_amsys_init(), baro_amsys_read_event(), and baro_amsys_read_periodic().
bool baro_amsys_enabled |
Definition at line 77 of file baro_amsys.c.
Referenced by alt_kalman(), and baro_amsys_init().
struct i2c_transaction baro_amsys_i2c_trans |
Definition at line 90 of file baro_amsys.c.
Referenced by baro_amsys_init(), baro_amsys_read_event(), and baro_amsys_read_periodic().
float baro_amsys_r |
Definition at line 78 of file baro_amsys.c.
Referenced by alt_kalman(), and baro_amsys_init().
float baro_amsys_sigma2 |
Definition at line 79 of file baro_amsys.c.
Referenced by alt_kalman(), and baro_amsys_init().
bool baro_amsys_valid |
Definition at line 75 of file baro_amsys.c.
Referenced by baro_amsys_init(), and baro_amsys_read_event().
float baro_filter |
Definition at line 86 of file baro_amsys.c.
Referenced by baro_amsys_init(), and baro_amsys_read_event().