40 #include "pprzlink/messages.h"
45 #define BMP_I2C_DEV i2c0
48 #define BARO_BMP_R 0.5
49 #define BARO_BMP_SIGMA2 0.1
89 tmp = pow(tmp, 0.190295);
98 #ifdef SENSOR_SYNC_SEND
Main include for ABI (AirBorneInterface).
#define BARO_BMP_SENDER_ID
#define BARO_BOARD_SENDER_ID
default onboard baro
void baro_bmp_periodic(void)
void baro_bmp_event(void)
Bosch BMP085 I2C sensor interface.
void bmp085_init(struct Bmp085 *bmp, struct i2c_periph *i2c_p, uint8_t addr)
void bmp085_event(struct Bmp085 *bmp)
void bmp085_read_eeprom_calib(struct Bmp085 *bmp)
void bmp085_periodic(struct Bmp085 *bmp)
Start new measurement if idle or read temp/pressure.
int32_t up
uncompensated pressure
int32_t pressure
pressure in Pascal
int32_t temperature
temperature in 0.1 deg Celcius
bool initialized
config done flag
int32_t ut
uncompensated temperature
volatile bool data_available
data ready flag
Bosch BMP085 register definitions.
#define BMP085_SLAVE_ADDR
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent LED (Light Emitting Diodes) API
Architecture independent timing functions.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.