#include <caqi_calculator.h>
|
| uint16_t | get_aqi (float pm2_5_value, float pm10_0_value) override |
| |
Definition at line 10 of file caqi_calculator.h.
◆ calculate_index()
| static float esphome::aqi::CAQICalculator::calculate_index |
( |
float | value, |
|
|
const float | array[NUM_LEVELS][2] ) |
|
inlinestaticprotected |
◆ get_aqi()
| uint16_t esphome::aqi::CAQICalculator::get_aqi |
( |
float | pm2_5_value, |
|
|
float | pm10_0_value ) |
|
inlineoverridevirtual |
◆ get_grid_index()
| static int esphome::aqi::CAQICalculator::get_grid_index |
( |
float | value, |
|
|
const float | array[NUM_LEVELS][2] ) |
|
inlinestaticprotected |
◆ INDEX_GRID
| int esphome::aqi::CAQICalculator::INDEX_GRID[NUM_LEVELS][2] = {{0, 25}, {26, 50}, {51, 75}, {76, 100}, {101, 400}} |
|
staticconstexprprotected |
◆ NUM_LEVELS
| int esphome::aqi::CAQICalculator::NUM_LEVELS = 5 |
|
staticconstexprprotected |
◆ PM10_0_GRID
| float esphome::aqi::CAQICalculator::PM10_0_GRID[NUM_LEVELS][2] |
|
staticconstexprprotected |
Initial value:= {
{0.0f, 25.1f},
{25.1f, 50.1f},
{50.1f, 90.1f},
{90.1f, 180.1f},
{180.1f, std::numeric_limits<float>::max()}
}
Definition at line 38 of file caqi_calculator.h.
◆ PM2_5_GRID
| float esphome::aqi::CAQICalculator::PM2_5_GRID[NUM_LEVELS][2] |
|
staticconstexprprotected |
Initial value:= {
{0.0f, 15.1f},
{15.1f, 30.1f},
{30.1f, 55.1f},
{55.1f, 110.1f},
{110.1f, std::numeric_limits<float>::max()}
}
Definition at line 28 of file caqi_calculator.h.
The documentation for this class was generated from the following file: