Skip to content

Incorrect Coefficient in Altitude Calculation #30

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

Closed
seekerdave opened this issue Nov 17, 2018 · 2 comments
Closed

Incorrect Coefficient in Altitude Calculation #30

seekerdave opened this issue Nov 17, 2018 · 2 comments

Comments

@seekerdave
Copy link

I believe there is an error in the altitude calculation formula (SparkFunBME280.cpp, line #421). The coefficient value of 45846.2 does not match international (ISA) or US standard altitude models.

To match accepted standards this should have a value of 44330.77 (44330.76923 to be exact).

I know it seems a small issue, but since this is a multiplier, it results in values that are 3.4% too high. Here are some references supporting this coefficient:

https://www.iso.org/standard/7472.html
ISO Standard Atmosphere. The primary source document for the international standard. (Unfortunately there is a charge to download this document.)

https://www.fai.org/sites/default/files/documents/sc4_vol_edic_16_rev_1.pdf
FAI World Aeromodeling document. A more accessable document describing altimeter requirements for model aircraft competition. (See page 10)

https://en.wikipedia.org/wiki/International_Standard_Atmosphere
Wikipedia info on altitude standards with more references at the end of the document.

https://github.com/adafruit/Adafruit_BME280_Library
The Adafruit BME280 library uses a value of 44330.0 (line 591).

Thank you for your efforts!

@nseidle
Copy link
Member

nseidle commented Dec 10, 2018

Thank you for reporting and the source links! Now fixed in v2.0.4.

@nseidle nseidle closed this as completed Dec 10, 2018
@ClaytonSmith
Copy link

What is the name of that coefficient?

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

3 participants