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

feat: feature to see altitude from pressure added in Barometer #1924

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

neel1998
Copy link
Member

@neel1998 neel1998 commented Aug 12, 2019

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]

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing:
altitude.zip

if (pressure <= 0.0) {
return 0;
} else {
return (float) (44330 * (1 - Math.pow(pressure, 1.0 / 5.255)));
Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CloudyPadmal CloudyPadmal added the Feature New addition to the existing app label Aug 13, 2019
@CloudyPadmal CloudyPadmal changed the title feat:feature to see altitude from pressure added in Barometer feat: feature to see altitude from pressure added in Barometer Aug 13, 2019
Copy link
Collaborator

@CloudyPadmal CloudyPadmal left a 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

@neel1998
Copy link
Member Author

@CloudyPadmal please review

@CloudyPadmal CloudyPadmal added the Status: Review Required Requested reviews from peers and maintainers label Aug 15, 2019
@CloudyPadmal CloudyPadmal merged commit ca3b4c8 into fossasia:development Aug 15, 2019
@CloudyPadmal CloudyPadmal removed the Status: Review Required Requested reviews from peers and maintainers label Aug 15, 2019
@neel1998 neel1998 deleted the altitude_meter branch August 27, 2019 13:57
makoteq pushed a commit to makoteq/pslab-android that referenced this pull request Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New addition to the existing app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Altitude Meter
3 participants