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

[Request]: support read absolute altitude #3199

Open
zhuscat opened this issue Aug 28, 2024 · 1 comment
Open

[Request]: support read absolute altitude #3199

zhuscat opened this issue Aug 28, 2024 · 1 comment
Labels
enhancement New feature or request triage

Comments

@zhuscat
Copy link

zhuscat commented Aug 28, 2024

Plugin

sensors_plus

Use case

to track user's absolute altitude changes

Proposal

https://developer.apple.com/documentation/coremotion/cmaltimeter/3746858-startabsolutealtitudeupdates

From Apple's documentation, CMAltimeter supports read absolute altitude. Is it appropriate to add this feature to sensors_plus

@zhuscat zhuscat added enhancement New feature or request triage labels Aug 28, 2024
@aanas-sayed
Copy link
Contributor

aanas-sayed commented Oct 16, 2024

I'm in need of this. Would happy to implement it but need ideas on how to structure it as a barometer call already exists, so how to add this?

  1. As a separate function? if so what should it be called? Since the previous is called Barometer, this could be called Altimeter?
  2. As an additional field (altitude) alongside pressure. This may not work because startAbsoluteAltitudeUpdates and startRelativeAltitudeUpdates may not update at the same time.

For Android, it can be accomplished using PRESSURE_STANDARD_ATMOSPHERE as sea level approximation and getAltitude

@vbuberen @miquelbeltran - Would either of you be able to comment on this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

2 participants