33 #include "pprzlink/messages.h"
37 #if DOWNLINK && !defined(BMP280_SYNC_SEND)
42 #ifndef BMP280_SLAVE_ADDR
43 #define BMP280_SLAVE_ADDR BMP280_I2C_ADDR
54 #if DOWNLINK && !defined(BMP280_SYNC_SEND)
61 pprz_msg_send_BMP_STATUS(trans,
dev, AC_ID, &baro_altitude, &baro_altitude , &baro_pressure, & baro_temperature);
72 #if DOWNLINK && !defined(BMP280_SYNC_SEND)
97 #if defined(BMP280_SYNC_SEND)
Main include for ABI (AirBorneInterface).
#define BARO_BMP_SENDER_ID
#define BMP280_SLAVE_ADDR
default slave address
struct Bmp280_I2c baro_bmp280
void baro_bmp280_periodic(void)
void baro_bmp280_init(void)
static void send_baro_bmp_data(struct transport_tx *trans, struct link_device *dev)
void baro_bmp280_event(void)
Bosch BMP280 I2C sensor interface.
void bmp280_i2c_event(struct Bmp280_I2c *bmp)
void bmp280_i2c_periodic(struct Bmp280_I2c *bmp)
void bmp280_i2c_init(struct Bmp280_I2c *bmp, struct i2c_periph *i2c_p, uint8_t addr)
uint32_t raw_temperature
uncompensated temperature
float pressure
pressure in Pascal
float temperature
temperature in deg Celcius
volatile bool data_available
data ready flag
uint32_t raw_pressure
uncompensated pressure
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).
Paparazzi atmospheric pressure conversion utilities.
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.
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.