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
50 #ifndef MS5611_TYPE_MS5607
51 #define MS5611_TYPE_MS5607 FALSE
112 #ifdef SENSOR_SYNC_SEND
Main include for ABI (AirBorneInterface).
#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
void baro_ms5611_send_coeff(void)
#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.
Common code for AP and FBW telemetry.
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
uint32_t pressure
pressure in Pascal (0.01mbar)
int32_t temperature
temperature with 0.01 degrees Celsius resolution
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.
volatile bool data_available
data ready flag
bool initialized
config done flag
Paparazzi atmospheric pressure conversion utilities.
Architecture independent timing functions.
volatile uint32_t nb_sec
full seconds since startup
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.