This repository was archived by the owner on Sep 30, 2019. It is now read-only.
Added function to calculate real/absolute pressure at sea level#56
Closed
F481 wants to merge 1 commit intoadafruit:masterfrom
Closed
Added function to calculate real/absolute pressure at sea level#56F481 wants to merge 1 commit intoadafruit:masterfrom
F481 wants to merge 1 commit intoadafruit:masterfrom
Conversation
Author
There was a problem hiding this comment.
Forgot to make the altitude parameter variable.
Best would be to use a global variable where the user could set the altitude.
Contributor
|
Thanks for sending the pull and apologies it couldn't be reviewed sooner. I've actually refactored the BMP085 library a lot so it supports both the Pi and Beaglebone Black. In the process I also added the read sealevel pressure function like in this pull. Take a look at the new library at https://github.com/adafruit/Adafruit_Python_BMP if you're curious. I'll close this pull since this older library is now deprecated. Thanks again for sending the pull and suggesting the new function. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added a function that gives the real pressure at sea level.
Reason: The BMP085 is configured for usage on sea level, so we have to do a compensation calculation to consider the altitude of the actual sensor position.
For more information take a look at the BMP085 datasheet chapter 3.7: "Calculating pressure at sea level" http://www.adafruit.com/datasheets/BMP085_DataSheet_Rev.1.0_01July2008.pdf