|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI. More...
#include "modules/sensors/baro_ms5611_spi.h"#include "math/pprz_isa.h"#include "mcu_periph/sys_time.h"#include "modules/core/abi.h"Go to the source code of this file.
Macros | |
| #define | MS5611_SPI_DEV spi1 |
| #define | MS5611_SLAVE_IDX SPI_SLAVE0 |
Functions | |
| void | baro_ms5611_init (void) |
| void | baro_ms5611_periodic_check (void) |
| void | baro_ms5611_read (void) |
| trigger new measurement or initialize if needed | |
| void | baro_ms5611_event (void) |
Variables | |
| struct Ms5611_Spi | baro_ms5611 |
| float | fbaroms |
| float | ftempms |
| float | baro_ms5611_alt |
| bool | baro_ms5611_alt_valid |
| bool | baro_ms5611_enabled |
| float | baro_ms5611_r |
| float | baro_ms5611_sigma2 |
Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for SPI.
Definition in file baro_ms5611_spi.c.
| #define MS5611_SLAVE_IDX SPI_SLAVE0 |
Definition at line 47 of file baro_ms5611_spi.c.
Referenced by baro_ms5611_init().
| #define MS5611_SPI_DEV spi1 |
Definition at line 43 of file baro_ms5611_spi.c.
Referenced by baro_ms5611_init().
| void baro_ms5611_event | ( | void | ) |
Definition at line 90 of file baro_ms5611_spi.c.
References baro_ms5611, baro_ms5611_alt, baro_ms5611_alt_valid, BARO_MS5611_SENDER_ID, get_sys_time_usec(), ms5611_spi_event(), pprz_isa_altitude_of_pressure(), TEMPERATURE_TYPE_BARO, and update_median_filter_f().
| void baro_ms5611_init | ( | void | ) |
Definition at line 61 of file baro_ms5611_spi.c.
References baro_ms5611, baro_ms5611_alt_valid, baro_ms5611_enabled, BARO_MS5611_R, baro_ms5611_r, BARO_MS5611_SIGMA2, baro_ms5611_sigma2, FALSE, init_median_filter_f(), MEDIAN_DEFAULT_SIZE, MS5611_SLAVE_IDX, MS5611_SPI_DEV, and ms5611_spi_init().
| void baro_ms5611_periodic_check | ( | void | ) |
Definition at line 77 of file baro_ms5611_spi.c.
References baro_ms5611, and ms5611_spi_periodic_check().
| void baro_ms5611_read | ( | void | ) |
trigger new measurement or initialize if needed
Definition at line 83 of file baro_ms5611_spi.c.
References baro_ms5611, ms5611_spi_read(), and sys_time::nb_sec.
| struct Ms5611_Spi baro_ms5611 |
Definition at line 50 of file baro_ms5611_spi.c.
| float baro_ms5611_alt |
Definition at line 53 of file baro_ms5611_spi.c.
| bool baro_ms5611_alt_valid |
Definition at line 54 of file baro_ms5611_spi.c.
| bool baro_ms5611_enabled |
Definition at line 55 of file baro_ms5611_spi.c.
| float baro_ms5611_r |
Definition at line 57 of file baro_ms5611_spi.c.
| float baro_ms5611_sigma2 |
Definition at line 58 of file baro_ms5611_spi.c.
| float fbaroms |
Definition at line 52 of file baro_ms5611_spi.c.
| float ftempms |
Definition at line 52 of file baro_ms5611_spi.c.