-
Notifications
You must be signed in to change notification settings - Fork 42
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
Align code in this library to Adafruit code for ESP32, ESP8266, etc. #23
Comments
@dachshund-digital I understand that you may be frustrated but none the less please phrase your request in a manner that is less accusatory and more constructive. |
To your point about being constructive, valid point. Thus, below is the formula for proper calculation of sea level pressure, for a given elevation, temperature, and pressure at said elevation location. This should save some time and effort when the code is revised appropriately to address the issue at hand. [https://keisan.casio.com/exec/system/1224575267] |
@dachshund-digital thanks, please submit a PR and we'll check it out! |
While I was in the others BME280 issues, I started to have a look at this one. What I understand so far is that there are mainly 2 main formulas to link pressure and altitude: The "full" version is the one given in the above link and the "Barometric" which works fine for altitude below 11,000 meters. The formula currently used in the library is the "Barometric" formula with an additional approximation using a static temperature at 15°C (seems to be a common approximation)
Happy to help is you want. |
hiya, for Q2, you have to set |
The current Adafruit code for ESP32, ESP8266 BME280 libraries/APIs support correct calculation for sea level pressure by accepting an elevation value and pressure value. And that calculated pressure at sea level is then used for altitude result.
This library only supports a crude static value for pressure at sea level. This is functionally incorrect, and should be address. For example ESP32 and ESP8266 library by Adafruit correctly reports sea level pressure at an elevation of 41 meters for my location. But this library reports the altitude for my location as 68 meters.
The text was updated successfully, but these errors were encountered: