Skip to content

Commit 9360806

Browse files
committed
2 parents e114e61 + 996f45f commit 9360806

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ dependencies {
6363
- [x] Implement some route visualizer for desktop application
6464
- [x] Implement Kalman filter and test all settings
6565
- [x] Implement noise generator for logged data
66+
- [ ] Improve UI. Need to use some controls for coefficient/noise changes
6667

6768
### Filter
6869

@@ -82,7 +83,26 @@ dependencies {
8283
### Library
8384

8485
- [x] Separate test android application and library
85-
- [ ] Add library to maven repository
86+
- [x] Add library to some public repository
87+
88+
## Theory
89+
90+
Kalman filtering, also known as linear quadratic estimation (LQE), is an algorithm that uses a series of measurements observed over time, containing statistical noise and other inaccuracies, and produces estimates of unknown variables that tend to be more accurate than those based on a single measurement alone, by estimating a joint probability distribution over the variables for each timeframe.
91+
92+
You can get more details about the filter [here](https://en.wikipedia.org/wiki/Kalman_filter).
93+
94+
The filter is a de-facto standard solution in navigation systems. The project simply defines the given data and implements some math.
95+
96+
The project uses 2 data sources: GPS and accelerometer. GPS coordinates are not very accurate, but each of them doesn't depend on previous values. So, there is no accumulation error in this case. On the other hand, the accelerometer has very accurate GPS readings, but it accumulates error related to noise and integration error. Therefore, it is necessary to "fuse" these two sources. Kalman is the best solution here.
97+
98+
So first - we need to define matrices and do some math with them. And second - we need to get real acceleration (not in device orientation) . First one is described in current project's wiki. But second one is little bit more complex thing called "sensor fusion". There is a lot information about this in internet. For real acceleration we need to know 2 things : device orientation and "linear acceleration". Linear acceleration is acceleration along each device axis excluding force of gravity. It could be calculated by high pass filter or with more complex algorithms. Device orientation could be calculated in many ways :
99+
100+
- Using accelerometer + magnetometer
101+
- Using accelerometer + magnetometer + gyroscope
102+
- Using [Madgwick filter](http://x-io.co.uk/open-source-imu-and-ahrs-algorithms/)
103+
- Using virtual "rotation vector" sensor.
104+
105+
Best results show madgwick and rotation vector sensor, but Madgwick filter should be used when we know sensor frequency. Android doesn't provide such information, so best solution here is to use virtual rotation vector sensor. You can get more details from current project's wiki.
86106

87107
## Issues
88108

0 commit comments

Comments
 (0)