Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Missing division by 1000 in MQ135::getRZero() #10

Open
wsauf opened this issue Aug 2, 2020 · 0 comments
Open

Missing division by 1000 in MQ135::getRZero() #10

wsauf opened this issue Aug 2, 2020 · 0 comments

Comments

@wsauf
Copy link

wsauf commented Aug 2, 2020

I thing there is a missing division by 1000 in the function MQ135::getRZero()
The function should look like:

float MQ135::getRZero() {
return getResistance() * pow((ATMOCO2/1000./PARA), (1./PARB));
}

Without this division, you get for RZero match to high values. I got same values by 500 and not by 76. After doing the division by 1000 I got values near 76.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant