38#define MS5611_I2C_DEV i2c0
42#ifndef MS5611_SLAVE_ADDR
43#define MS5611_SLAVE_ADDR 0xEE
47#ifndef MS5611_TYPE_MS5607
48#define MS5611_TYPE_MS5607 FALSE
Main include for ABI (AirBorneInterface).
#define TEMPERATURE_TYPE_BARO
barometer die
#define BARO_MS5611_SENDER_ID
bool baro_ms5611_alt_valid
#define MS5611_TYPE_MS5607
set to TRUE if baro is actually a MS5607
struct Ms5611_I2c baro_ms5611
void baro_ms5611_periodic_check(void)
void baro_ms5611_init(void)
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
#define MS5611_SLAVE_ADDR
void baro_ms5611_event(void)
#define BARO_MS5611_SIGMA2
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_i2c_event(struct Ms5611_I2c *ms)
void ms5611_i2c_init(struct Ms5611_I2c *ms, struct i2c_periph *i2c_p, uint8_t addr, bool is_ms5607)
void ms5611_i2c_periodic_check(struct Ms5611_I2c *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
static void ms5611_i2c_read(struct Ms5611_I2c *ms)
convenience function to trigger new measurement.
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
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.