Created
February 5, 2015 01:09
-
-
Save alexdean/ba0efd6bf2f4f3b6dde2 to your computer and use it in GitHub Desktop.
BMP085 altitude calcs for various pressure readings
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
| # poking at https://github.com/alexdean/Adafruit_Python_BMP/blob/master/Adafruit_BMP/BMP085.py#L191 | |
| pressures = [101325.00, 22632.10, 5474.89, 868.02, 110.91, 66.94, 3.96] | |
| for pressure in pressures: | |
| print(str(pressure) + "Pa == " + str(read_altitude(pressure)) + "m") | |
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
| 101325.0 Pa == 0.0m | |
| 22632.1 Pa == 11001.3837842 m | |
| 5474.89 Pa == 18889.2981019 m | |
| 868.02 Pa == 26410.6400892 m | |
| 110.91 Pa == 32216.1353848 m | |
| 66.94 Pa == 33325.9162641 m | |
| 3.96 Pa == 37904.9948120 m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment