Apply pm correction to display and led bar

This commit is contained in:
samuelbles07 committed 2024-11-02 14:44:32 +07:00
1 parent 5867d0f1d5
commit 7b0381dea3
4 files changed
+51 -8

No files matched your search

+12
View File
@@ -114,6 +114,18 @@ public:
*/
float getFloat(MeasurementType type, int ch = 1);
/**
* @brief Get the Corrected PM25 object based on the correction algorithm from configuration
*
* @param ag AirGradient instance
* @param config Configuration instance
* @param useAvg Use moving average value if true, otherwise use latest value
* @param ch MeasurementType channel
* @return float Corrected PM2.5 value
*/
float getCorrectedPM25(AirGradient &ag, Configuration &config, bool useAvg = false, int ch = 1);
/**
* build json payload for every measurements
*/