36#if USE_BARO_MEDIAN_FILTER
43#define MS5611_SPI_DEV spi1
46#ifndef MS5611_SLAVE_IDX
47#define MS5611_SLAVE_IDX SPI_SLAVE0
63#if USE_BARO_MEDIAN_FILTER
97 #if USE_BARO_MEDIAN_FILTER
100 float temp =
baro_ms5611.data.temperature / 100.0f;
104 #if USE_BARO_MEDIAN_FILTER
Main include for ABI (AirBorneInterface).
#define TEMPERATURE_TYPE_BARO
barometer die
#define BARO_MS5611_SENDER_ID
bool baro_ms5611_alt_valid
struct Ms5611_I2c baro_ms5611
#define BARO_MS5611_SIGMA2
void baro_ms5611_periodic_check(void)
void baro_ms5611_init(void)
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
void baro_ms5611_event(void)
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
void ms5611_spi_event(struct Ms5611_Spi *ms)
void ms5611_spi_periodic_check(struct Ms5611_Spi *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
void ms5611_spi_init(struct Ms5611_Spi *ms, struct spi_periph *spi_p, uint8_t slave_idx, bool is_ms5607)
static void ms5611_spi_read(struct Ms5611_Spi *ms)
convenience function to trigger new measurement.
Paparazzi atmospheric pressure conversion utilities.
Architecture independent timing functions.
volatile uint32_t nb_sec
full seconds since startup
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.