NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
barometer.h File Reference
Include dependency graph for barometer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  baro
 

Macros

#define BARO_SAMPLE_COUNT_MAX   48
 
#define BARO_MAX   BARO_BMP280
 

Enumerations

enum  baroSensor_e {
  BARO_DEFAULT = 0, BARO_NONE = 1, BARO_BMP085 = 2, BARO_MS5611 = 3,
  BARO_BMP280 = 4
}
 

Functions

void baro_init (struct baro *self, const struct config *config)
 
bool baro_is_calibrated (struct baro *self)
 
void baro_start_calibration (struct baro *self)
 
uint32_t baro_update (struct baro *self)
 
bool baro_is_ready (struct baro *self)
 
int32_t baro_calc_altitude (struct baro *self)
 

Macro Definition Documentation

#define BARO_MAX   BARO_BMP280
#define BARO_SAMPLE_COUNT_MAX   48

Enumeration Type Documentation

Enumerator
BARO_DEFAULT 
BARO_NONE 
BARO_BMP085 
BARO_MS5611 
BARO_BMP280 

Function Documentation

int32_t baro_calc_altitude ( struct baro self)

Here is the call graph for this function:

void baro_init ( struct baro self,
const struct config config 
)
bool baro_is_calibrated ( struct baro self)
bool baro_is_ready ( struct baro self)
void baro_start_calibration ( struct baro self)
uint32_t baro_update ( struct baro self)

Here is the call graph for this function: