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

Altitude calculation seems off #8

Open
elpiel opened this issue Nov 19, 2023 · 0 comments
Open

Altitude calculation seems off #8

elpiel opened this issue Nov 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@elpiel
Copy link
Collaborator

elpiel commented Nov 19, 2023

Current altitude formula

In #5 altitude methods were introduced for calculating and calibrate abs. difference, however, the current formula calculations (taken from https://www.weather.gov/media/epz/wxcalc/pressureAltitude.pdf) seem wrong when compared to other online tools.

https://www.omnicalculator.com/physics/air-pressure-at-altitude

image

Logs:

INFO - BMP388 Calibrating at altitude 141.36888383097644 meters
INFO - New Sea level set at: 101328.06208886617 Pa
INFO - (bmp388 sensor_values): Pressure: 99628.1662335411; Temperature: 25.38629681384191; Altitude: 141.36888383097644 m
INFO - (bmp388 sensor_values): Pressure: 99634.87939805973; Temperature: 25.453032821416855; Altitude: 142.54845930816927 m
INFO - (bmp388 sensor_values): Pressure: 99622.3665093767; Temperature: 25.453032821416855; Altitude: 142.11197706159922 m
INFO - (bmp388 sensor_values): Pressure: 99635.88297983391; Temperature: 25.457481851335615; Altitude: 142.28127752284794 m
INFO - (bmp388 sensor_values): Pressure: 99645.22866162275; Temperature: 25.461930876597762; Altitude: 141.76015579386856 m
INFO - (bmp388 sensor_values): Pressure: 99622.3665093767; Temperature: 25.453032821416855; Altitude: 141.59085769020234 m
INFO - (bmp388 sensor_values): Pressure: 99635.88297983391; Temperature: 25.457481851335615; Altitude: 141.76015579386856 m

New formulas

https://www.grc.nasa.gov/WWW/K-12/airplane/atmosmet.html

@elpiel elpiel added the bug Something isn't working label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant