Finding distance using the accelerometer in iPhone

Please suggest some starting point in this process of finding the distance moved by iPhone. The accuracy requirement in the current system is in cm , and the offset may be in 3D.

What I have already done

1. Tried to use sound to calculate the distance between two iPhone, but I need to calculate the distance with only one iPhone, ie need moving.

2. I tried CMMotionManager and its accelerometer data, but the values โ€‹โ€‹obtained are helpless.

I think I need a good filter to get useful data from this garbage. I already used Kalman Filter and went through the link

iphone accelerometer speed and distance ,

How to calculate distance using accelerometer using iphone sdk? ,

How to measure the distance traveled by iPhone using an accelerometer? ,

The basic calculus behind this problem is in the expression

Passed the DCT-II algorithm and Multidimensional DCT to filter data.

I donโ€™t know what I missed, or where I should go from here, since itโ€™s hard to believe that no one used the accelerometer for such accuracy, because there are so many practical examples that are used for greater accuracy.

Please provide me with some pointer that suggests some way out of the current situation.

0
source share
1 answer

You cannot achieve accuracy see. The reason, surprisingly, is an orientation error.

The link above contains some tips on what you can do if you need moving.

An even better alternative is to use orientation in your application if you can.

+3
source

Source: https://habr.com/ru/post/1480545/


All Articles