by rossant · 2y ago · 0 comments
Edit: found it. https://medium.com/snips-ai/underground-location-tracking-3e...
As others have stated, not all phones have pressure sensors, and the quality of the readings also varies a lot between different models. For example, we had one device where the readings would spike when squeezing the phone.
Transit also doesn't have permission to read the pressure sensor, and our use case wouldn't justify asking for it.
For others wanting to implement similar functionality, it would be great if they didn't need to re-do the entire work from scratch.
When you remove the filter, it returns 12177 results. So only ~5% of phone models include a barometer.
Note that's "sensitive", not "precise". The atmosphere changes pressure with the weather, so you don't get accurate absolute altitude - at least not without knowing the local "pressure altitude". Barometric pressure can vary in a way that represents plus or minus 300 or 400m of altitude, and can swing between high and low fairly rapidly in extreme weather events.
But over short timeframe the change in barometric altitude can be very useful. Glider pilots (including paragliders and even RC gliders) often use very sensitive barometric pressure sensors to detect when they're in rising to sinking air, down at the few meters per minute range of sensitivity.
[1] https://www.nstb.tc.faa.gov/reports/2020_Q4_SPS_PAN_v2.0.pdf...
Edit: at least the excellent Physics Toolbox Sensor Suite gives me a barometer signal indicating 102570 Pa right now.
I'd have to have missed the title of the post, not read the post itself, not read GP's comment, not thought about why there'd be a pressure change, to have missed that particular detail. I appreciate you trying to be helpful though. :)
Conclusion, Fitbit and Google heart rate monitors on those wearables are hot garbage. Cue some snooty googler insisting I'm doing it wrong somehow.