36 #include "pprzlink/messages.h"
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
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void ms5611_i2c_init(struct Ms5611_I2c *ms, struct i2c_periph *i2c_p, uint8_t addr, bool is_ms5607)
void baro_ms5611_init(void)
uint32_t pressure
pressure in Pascal (0.01mbar)
bool baro_ms5611_alt_valid
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).
volatile bool data_available
data ready flag
#define BARO_MS5611_SENDER_ID
Architecture independent timing functions.
Paparazzi atmospheric pressure conversion utilities.
void ms5611_i2c_event(struct Ms5611_I2c *ms)
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
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.
bool initialized
config done flag
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.
void baro_ms5611_periodic_check(void)