|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
39 #include "pprzlink/messages.h"
44 #if BARO_PERIODIC_FREQUENCY > 100
45 #error "For MS5611 BARO_PERIODIC_FREQUENCY has to be <= 100"
48 PRINT_CONFIG_VAR(BB_MS5611_SLAVE_IDX)
49 PRINT_CONFIG_VAR(BB_MS5611_SPI_DEV)
51 #ifndef BB_MS5611_TYPE_MS5607
53 #define BB_MS5611_TYPE_MS5607 FALSE
#define BARO_BOARD_SENDER_ID
default onboard baro
int32_t temperature
temperature with 0.01 degrees Celsius resolution
struct MedianFilterFloat bb_ms5611_filt
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
bool initialized
config done flag
Architecture independent timing functions.
struct Ms5611_Spi bb_ms5611
arch independent LED (Light Emitting Diodes) API
Common code for AP and FBW telemetry.
static void ms5611_spi_periodic(struct Ms5611_Spi *ms)
convenience function
volatile uint32_t nb_sec
full seconds since startup
void ms5611_spi_event(struct Ms5611_Spi *ms)
#define BB_MS5611_TYPE_MS5607
set to TRUE if baro is actually a MS5607
uint32_t pressure
pressure in Pascal (0.01mbar)
void ms5611_spi_init(struct Ms5611_Spi *ms, struct spi_periph *spi_p, uint8_t slave_idx, bool is_ms5607)