|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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
106 #ifdef SENSOR_SYNC_SEND
int32_t temperature
temperature with 0.01 degrees Celsius resolution
void ms5611_spi_periodic_check(struct Ms5611_Spi *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
struct Ms5611_Spi baro_ms5611
bool baro_ms5611_alt_valid
static void ms5611_spi_read(struct Ms5611_Spi *ms)
convenience function to trigger new measurement.
void baro_ms5611_init(void)
volatile bool data_available
data ready flag
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
static float pprz_isa_altitude_of_pressure(float pressure)
Get absolute altitude from pressure (using simplified equation).
#define BARO_MS5611_SIGMA2
void baro_ms5611_read(void)
trigger new measurement or initialize if needed
void baro_ms5611_event(void)
bool initialized
config done flag
Architecture independent timing functions.
Common code for AP and FBW telemetry.
void baro_ms5611_send_coeff(void)
void baro_ms5611_periodic_check(void)
volatile uint32_t nb_sec
full seconds since startup
#define BARO_MS5611_SENDER_ID
void ms5611_spi_event(struct Ms5611_Spi *ms)
uint32_t pressure
pressure in Pascal (0.01mbar)
Paparazzi atmospheric pressure conversion utilities.
void ms5611_spi_init(struct Ms5611_Spi *ms, struct spi_periph *spi_p, uint8_t slave_idx, bool is_ms5607)