IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
ms5611_c.h
Go to the documentation of this file.
1#ifndef MS5611_C_H
2#define MS5611_C_H
3
4#include "median.h"
5#include "ms5611.h"
6
7#define TAG_MS5611 "MS5611"
8
9#define MS5611_OSR MS5611_OSR_4096
10
11#define MEDIAN_SIZE_PRS 50
12#define MEDIAN_SIZE_TMP 50
13
20esp_err_t ms5611_c_init(ms5611_t *dev);
21
32 int32_t *pressure,
33 float *temperature,
34 float *altitude);
35
36#endif // MS5611_C_H
esp_err_t ms5611_c_init(ms5611_t *dev)
Initialize MS5611 descriptor for pressure and temperature readings.
Definition ms5611_c.c:21
void ms5611_read_pressure_temperature_and_altitude(ms5611_t *dev, int32_t *pressure, float *temperature, float *altitude)
Read data from MS5611 and store pressure (Pa), temperature (ÂșC) and altitude (m) from sea level.
Definition ms5611_c.c:37
Definition ms5611.h:86