Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix pm2.5 compensation formula #226

Merged
merged 3 commits into from
Sep 2, 2024
Merged

Conversation

pnt325
Copy link
Contributor

@pnt325 pnt325 commented Aug 26, 2024

@nick-4711 nick-4711 changed the title Fix pm2.5 compensated formula Fix pm2.5 compensation formula Aug 27, 2024
src/PMS/PMS.cpp Outdated
@@ -295,29 +295,32 @@ int PMSBase::pm25ToAQI(int pm02) {
/**
* @brief Correction PM2.5
*
* Formula: https://github.com/airgradienthq/arduino/issues/182
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the link but in there we also don't have sufficient information what this formula is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I don't know details of the formular, Just got it from @airgradienthq to implement.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can link to

https://www.airgradient.com/documentation/correction-algorithms/

Ideally we can also write a few test cases and verify that we get the expected value in each value range.

@pnt325 pnt325 requested a review from nick-4711 August 28, 2024 02:54
@airgradienthq airgradienthq merged commit 02b63ff into develop Sep 2, 2024
20 checks passed
@pnt325 pnt325 deleted the fix/pm2.5-compensated-formula branch September 2, 2024 12:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants