software:firmware
MakAir Firmware
|
Pressure computing utility function. More...
Go to the source code of this file.
Functions | |
int16_t | convertSensor2Pressure (uint32_t sensorValue) |
Convert the analog value from sensor to a pressure value. More... | |
void | resetFilteredRawPressure () |
Reset the value of void filteredRawPressure to 0. More... | |
Variables | |
static int32_t | filteredRawPressure = 0 |
static const int32_t | RAW_PRESSURE_FILTER_DIVIDER = 5 |
static const int16_t | RAW_PRESSURE_TO_MMH20_CONSTANT = 45 |
static const int32_t | RAW_PRESSURE_TO_MMH20_NUM = 2238 |
static const int32_t | RAW_PRESSURE_TO_MMH20_DEN = 10000 |
Pressure computing utility function.
Definition in file pressure_utl.cpp.
int16_t convertSensor2Pressure | ( | uint32_t | sensorValue | ) |
Convert the analog value from sensor to a pressure value.
sensorValue | Value read from the analog input connected to the sensor |
Definition at line 51 of file pressure_utl.cpp.
void resetFilteredRawPressure | ( | ) |
Reset the value of void filteredRawPressure to 0.
Definition at line 68 of file pressure_utl.cpp.
|
static |
Definition at line 16 of file pressure_utl.cpp.
|
static |
Definition at line 18 of file pressure_utl.cpp.
|
static |
Definition at line 45 of file pressure_utl.cpp.
|
static |
Definition at line 47 of file pressure_utl.cpp.
|
static |
Definition at line 46 of file pressure_utl.cpp.