12 #include "../includes/pressure_utl.h"
52 int32_t rawPressure =
static_cast<int32_t
>(sensorValue);
59 delta += (delta > 0) ? rounding : -rounding;
62 int16_t scaledRawPressure =
void resetFilteredRawPressure()
Reset the value of void filteredRawPressure to 0.
static int32_t filteredRawPressure
static const int32_t RAW_PRESSURE_FILTER_DIVIDER
static const int32_t RAW_PRESSURE_TO_MMH20_DEN
static const int32_t RAW_PRESSURE_TO_MMH20_NUM
int16_t convertSensor2Pressure(uint32_t sensorValue)
Convert the analog value from sensor to a pressure value.
static const int16_t RAW_PRESSURE_TO_MMH20_CONSTANT