Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI. More...
Go to the source code of this file.
Macros | |
#define | BARO_MS5611_DT BARO_MS5611_READ_PERIOD |
new measurement with every baro_ms5611_read() call More... | |
#define | BARO_MS5611_R 20 |
#define | BARO_MS5611_SIGMA2 1 |
Functions | |
void | baro_ms5611_init (void) |
void | baro_ms5611_read (void) |
trigger new measurement or initialize if needed More... | |
void | baro_ms5611_periodic_check (void) |
void | baro_ms5611_event (void) |
void | baro_ms5611_send_coeff (void) |
Variables | |
float | baro_ms5611_r |
float | baro_ms5611_sigma2 |
float | baro_ms5611_alt |
bool | baro_ms5611_alt_valid |
bool | baro_ms5611_enabled |
struct Ms5611_Spi | baro_ms5611 |
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI.
Definition in file baro_ms5611_spi.h.
#define BARO_MS5611_DT BARO_MS5611_READ_PERIOD |
new measurement with every baro_ms5611_read() call
Definition at line 36 of file baro_ms5611_spi.h.
#define BARO_MS5611_R 20 |
Definition at line 37 of file baro_ms5611_spi.h.
#define BARO_MS5611_SIGMA2 1 |
Definition at line 38 of file baro_ms5611_spi.h.
void baro_ms5611_event | ( | void | ) |
Definition at line 90 of file baro_ms5611_i2c.c.
References baro_ms5611, baro_ms5611_alt, baro_ms5611_alt_valid, BARO_MS5611_SENDER_ID, Ms5611Data::d1, Ms5611Data::d2, Ms5611_I2c::data, Ms5611_Spi::data, Ms5611_I2c::data_available, Ms5611_Spi::data_available, DefaultChannel, DefaultDevice, fbaroms, ms5611_i2c_event(), ms5611_spi_event(), pprz_isa_altitude_of_pressure(), Ms5611Data::pressure, and Ms5611Data::temperature.
void baro_ms5611_init | ( | void | ) |
Definition at line 60 of file baro_ms5611_i2c.c.
References baro_ms5611, baro_ms5611_alt_valid, baro_ms5611_enabled, BARO_MS5611_R, baro_ms5611_r, BARO_MS5611_SIGMA2, baro_ms5611_sigma2, FALSE, MS5611_I2C_DEV, ms5611_i2c_init(), MS5611_SLAVE_ADDR, MS5611_SLAVE_IDX, MS5611_SPI_DEV, and ms5611_spi_init().
void baro_ms5611_periodic_check | ( | void | ) |
Definition at line 71 of file baro_ms5611_i2c.c.
References baro_ms5611, baro_ms5611_send_coeff(), ms5611_i2c_periodic_check(), and ms5611_spi_periodic_check().
void baro_ms5611_read | ( | void | ) |
trigger new measurement or initialize if needed
Definition at line 83 of file baro_ms5611_i2c.c.
References baro_ms5611, ms5611_i2c_read(), ms5611_spi_read(), and sys_time::nb_sec.
void baro_ms5611_send_coeff | ( | void | ) |
Definition at line 114 of file baro_ms5611_i2c.c.
References baro_ms5611, Ms5611Data::c, Ms5611_I2c::data, Ms5611_Spi::data, DefaultChannel, DefaultDevice, Ms5611_I2c::initialized, and Ms5611_Spi::initialized.
Referenced by baro_ms5611_periodic_check().
struct Ms5611_Spi baro_ms5611 |
Definition at line 49 of file baro_ms5611_i2c.c.
Referenced by baro_ms5611_event(), baro_ms5611_init(), baro_ms5611_periodic_check(), baro_ms5611_read(), and baro_ms5611_send_coeff().
float baro_ms5611_alt |
Definition at line 52 of file baro_ms5611_i2c.c.
Referenced by baro_ms5611_event().
bool baro_ms5611_alt_valid |
Definition at line 53 of file baro_ms5611_i2c.c.
Referenced by baro_ms5611_event(), and baro_ms5611_init().
bool baro_ms5611_enabled |
Definition at line 54 of file baro_ms5611_i2c.c.
Referenced by alt_kalman(), and baro_ms5611_init().
float baro_ms5611_r |
Definition at line 56 of file baro_ms5611_i2c.c.
Referenced by alt_kalman(), and baro_ms5611_init().
float baro_ms5611_sigma2 |
Definition at line 57 of file baro_ms5611_i2c.c.
Referenced by alt_kalman(), and baro_ms5611_init().