36 #include "pprzlink/messages.h"
39 #ifndef MS5611_SPI_DEV
40 #define MS5611_SPI_DEV spi1
43 #ifndef MS5611_SLAVE_IDX
44 #define MS5611_SLAVE_IDX SPI_SLAVE0
105 #ifdef SENSOR_SYNC_SEND
void baro_ms5611_event(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
struct Ms5611_Spi baro_ms5611
volatile bool data_available
data ready flag
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI...
uint32_t pressure
pressure in Pascal (0.01mbar)
static void ms5611_spi_read(struct Ms5611_Spi *ms)
convenience function to trigger new measurement.
Main include for ABI (AirBorneInterface).
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
void ms5611_spi_event(struct Ms5611_Spi *ms)
#define BARO_MS5611_SENDER_ID
Architecture independent timing functions.
Paparazzi atmospheric pressure conversion utilities.
bool baro_ms5611_alt_valid
bool initialized
config done flag
void baro_ms5611_send_coeff(void)
void baro_ms5611_periodic_check(void)
void ms5611_spi_periodic_check(struct Ms5611_Spi *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
volatile uint32_t nb_sec
full seconds since startup
void ms5611_spi_init(struct Ms5611_Spi *ms, struct spi_periph *spi_p, uint8_t slave_idx, bool is_ms5607)
void baro_ms5611_init(void)
Common code for AP and FBW telemetry.
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
#define BARO_MS5611_SIGMA2
int32_t temperature
temperature with 0.01 degrees Celsius resolution