mad-location-manager
mad-location-manager copied to clipboard
Results worse after filtering with kalman.
After filtering with kalman filter my position is very noisy. My sensor sends me a quaternion from IMU which i use instead of madgwick. Then I make rotation matrix from it, and rotate my acceleration vector to get Absolute acc.
Is that approach correct? Maybe the quaternion is wrongly calculated? Sensor is bosch bno055
Approach is definitely correct. But need more info about your setup and filter settings.
I use only the kalman filter implementation from this repo. So basicaly i initialized filter with first point data, then I predict with acceleration, and update with gps data. No additional settings. Maybe the problem is, I use wrong standard deviation for acceleration and position. Or the accelerometer is not calibrated?
Maybe you use uncalibrated accelerometer. There are 2 variants of using filter here : Use speed readings from GPS receiver or not use.
Also this sensor bosch bno055 - did you calibrate it? I mean it uses magnetometer and when you use magnetometer you should compensate soft and hard iron distortions there .
That's why I asked about your setup :)
I'm using variant with speed from GPS. The magnetometer is calibrated according to my mechanical compass. Maybe frequency is the issue? It's only 5hz.
No, it should not be an issue.
So here is what i found, looking at the path.
On the image above we can clearly see that the path is not correct, it should by along a street. And when the filter is updated with correct gps data, it's ignored and getting even worse. So the filter is not filtering at all. Prediction works, but updating not. Any ideas ? :D
Sensor is bosch bno055 it has a drawback, it cannot accurately maintain orientation during prolonged accelerations and vibrations, these are problems of its fusion algorithm, it may be worth trying a more reliable sensor.