40 #ifndef MS5611_I2C_DEV
41 #define MS5611_I2C_DEV i2c0
45 #ifndef MS5611_SLAVE_ADDR
46 #define MS5611_SLAVE_ADDR 0xEE
105 #ifdef SENSOR_SYNC_SEND
bool_t baro_ms5611_enabled
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void baro_ms5611_init(void)
bool_t initialized
config done flag
uint32_t pressure
pressure in Pascal (0.01mbar)
Main include for ABI (AirBorneInterface).
void baro_ms5611_send_coeff(void)
void baro_ms5611_event(void)
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
#define BARO_MS5611_SENDER_ID
Architecture independent timing functions.
Paparazzi atmospheric pressure conversion utilities.
void ms5611_i2c_event(struct Ms5611_I2c *ms)
volatile bool_t data_available
data ready flag
void ms5611_i2c_init(struct Ms5611_I2c *ms, struct i2c_periph *i2c_p, uint8_t addr, bool_t is_ms5607)
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
#define DefaultChannel
SITL.
struct Ms5611_I2c baro_ms5611
#define MS5611_SLAVE_ADDR
volatile uint32_t nb_sec
full seconds since startup
Common code for AP and FBW telemetry.
static void ms5611_i2c_read(struct Ms5611_I2c *ms)
convenience function to trigger new measurement.
#define BARO_MS5611_SIGMA2
int32_t temperature
temperature with 0.01 degrees Celsius resolution
void ms5611_i2c_periodic_check(struct Ms5611_I2c *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
bool_t baro_ms5611_alt_valid
void baro_ms5611_periodic_check(void)