39 #define SPA06_USE_SPI FALSE
45#ifndef SPA06_SLAVE_ADDR
46 #define SPA06_SLAVE_ADDR SPA06_I2C_ADDR
50#ifndef SPA06_SLAVE_IDX
51 #define SPA06_SLAVE_IDX SPI_SLAVE0
Main include for ABI (AirBorneInterface).
#define TEMPERATURE_TYPE_BARO
barometer die
#define BARO_SPA_SENDER_ID
bool baro_spa06_alt_valid
true once the first valid sample has been processed
void baro_spa06_event(void)
Process finished bus transactions and publish new measurements.
float baro_spa06_alt
ISA pressure altitude of the last sample [m].
#define SPA06_SLAVE_ADDR
Default I2C slave address (SDO low); override with SPA06_I2C_ADDR_ALT for SDO high.
void baro_spa06_periodic(void)
Drive the sensor state machine (module periodic hook, 25Hz).
void baro_spa06_init(void)
Bind the driver to the configured bus.
struct spa06_t baro_spa06
The barometer driver instance.
#define SPA06_SLAVE_IDX
Default SPI slave select index, only used when SPA06_USE_SPI is TRUE.
Module glue for the Goertek SPA06-003 / SPL06-001 barometer.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
Paparazzi atmospheric pressure conversion utilities.
void spa06_init(struct spa06_t *spa)
Initialize the spa06 sensor instance.
void spa06_event(struct spa06_t *spa)
Should be called in the event thread.
void spa06_periodic(struct spa06_t *spa)
Should be called periodically to request sensor readings.
Architecture independent timing functions.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.