-
Notifications
You must be signed in to change notification settings - Fork 817
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
feat: feature to see altitude from pressure added in Barometer #1924
Conversation
if (pressure <= 0.0) { | ||
return 0; | ||
} else { | ||
return (float) (44330 * (1 - Math.pow(pressure, 1.0 / 5.255))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you get these values and equations? Better mention reference as a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://cdn-shop.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf check section 3.6 on page 16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add padding to bottom of altitude value box so that the padding left to it as same as padding bottom to it
30e4a67
to
049ed3a
Compare
049ed3a
to
084adba
Compare
@CloudyPadmal please review |
Fixes #1598
Changes: feature to see altitude from pressure added in Barometer
Screenshot/s for the changes:

Checklist: [Please tick following check boxes with
[x]
if the respective task is completed]strings.xml
,dimens.xml
andcolors.xml
without hard-coding themstrings.xml
,dimens.xml
orcolors.xml
APK for testing:
altitude.zip