openpositioning / PositionMe

Android app to collect data, position the user and show its path. The collected data is shared to the openpositioning.org service
2 stars 4 forks source link

Improve the estimation of the direction of movement #4

Open fzampella-huawei opened 5 months ago

fzampella-huawei commented 5 months ago

Improve the estimation of the direction of movement.

To obtain the direction of movement, we need the orientation of the phone that can come from:

The estimation of the direction of movement from the orientation and IMU signals can be obtained from:

fzampella-huawei commented 5 months ago

Branch "4-improve-the-estimation-of-the-direction-of-movement" modified the orientation of the app to use only the rotation vector, this limits the control of the orientation but provides a much more stable orientation. I have observed that if the device starts a "cold" data collection (without previously calibrating the magnetometer and gyro), the initial orientation is wrong, but after a few turns the orientation is "corrected", however the previous orientation was incorrectly accumulated.

Make sure to calibrate the orientation before a data collection doing the following:

I recommend to offer other orientation estimation methods in the app, with the possibility of recalculating the orientation with another method in the correction mode (future work)