I've interest to measure distance from different level in building using android resources (Gravity sensor) or any suggestion will be appreciate.
Asked
Active
Viewed 210 times
-3
-
The sensor noise is probably many orders of magnitude greater than the actual difference in gravity over the height of a building. Even if the sensor were capable of this kind of precision, the device would have to be absolutely still... probably bolted to a giant piece of concrete. – Kevin Krumwiede Aug 30 '14 at 17:44
-
Thanks Kevin for you note, but i would measure how high from level of the sea.. any source code or article may help – Safa_Alrawi Aug 30 '14 at 17:48
-
I feel like this is one of those implementations that, if it were realistically possible to accomplish with any accuracy, would be implemented by default with the sensors. – zgc7009 Aug 30 '14 at 18:25
2 Answers
1
Even if an android device had the precision nessacary to measure small changes like building floors, earth isn't perfectly round so the gravity can be about 0.02 m/s^2 more or less in different places, which is much more the change from just one building floor. You should try to get the altitude over GPS. Here is a post that might be interesting.
0
Even at the top of Everest, your looking at a acceleration delta three orders of magnitude below a G.
9km/6300km (Everest ht/ earth radius) = .0014
You will have a very hard time pulling relevant data at that precision with the average android device. Here's a reference that might be helpful though...

Community
- 1
- 1

Will Thomson
- 875
- 6
- 19