Comments (7)
It happens when I update gradle plugin from:
classpath 'com.android.tools.build:gradle:4.0.1'
to
classpath 'com.android.tools.build:gradle:4.1.2'
from mad-location-manager.
Seems like wrong matrix initialization or update.
Could you provide more info? At least I need GPSAccKalmanFilters constructor.
Did you try to debug it and see what's wrong with matrix dimensions?
from mad-location-manager.
Hi. I encountered same issue.
Matrix dimensions are 4 rows and 1 column, while args.length = 8. This is a third call to Matrix.setData() after app is started.
This method is called from GPSAccKalmanFilter.rebuildB() method.
b argument is
0 = 4.914112499999999
1 = 0.0
2 = 0.0
3 = 4.914112499999999
4 = 3.135
5 = 0.0
6 = 0.0
7 = 3.135
this.m_kf.B is empty 4x1 matrix.
I see it is created in KalmanFilter class. Which is created in GPSAccKalmanFilter with hardcoded stateDimensions = 4 and controlDimensions = 1. Which is inconsistent with b in rebuildB() method, which is always 8 elements long.
from mad-location-manager.
Hmm, I see now, in your repository controlDimensions is already fixed to be 2. While the version 0.1.13 in jitpack has this issue. Please update your jitpack version if possible as it is pretty much outdated
from mad-location-manager.
There is another similar crash in matrix.setData() caused by inconsistence between 4 parameters passed to m_kf.Zk.setData() on GPSAccKalmanFilter. Because 4 params are passed to the update matrix (2 coords and 2 velocities) but only 2 are expected (since useGpsSpeed is hardcoded to false in KalmanLocationService.java:614 which results in 2x1 matrix being created).
from mad-location-manager.
Created a pull-request with a small fix for that
from mad-location-manager.
@smirnovegorv
Thank you :) Project right now is kind of "rusty".
But most fixes are moved to lib branch to C library.
from mad-location-manager.
Related Issues (20)
- for gps accuracy
- Sensor calibration needed ? HOT 3
- gpsacckalmanfilter tutorial video ? HOT 1
- Demo App crashes with GPS Provider
- URGENT HELP HOT 5
- crash with deprecated api GPSStatus in "onStop()" method GPSLocationProvider file
- Maven Plugin doesn't work with Gradle 7.2 on Android Studio
- Doesn't work with Gradle 7.1.3
- Demo app crash
- Android location manager does not handle sensors ? HOT 1
- Фильтр Калмана не работает ожидаемым образом HOT 3
- questions on some logic used in code HOT 1
- Need help for starting demo app HOT 2
- Old device without sensors TYPE_ROTATION_VECTOR, TYPE_LINEAR_ACCELERATION HOT 4
- GPSAccKalmanFilter HOT 2
- Trouble updating mapbox sdk version HOT 1
- Kalman location service started location random coords HOT 1
- The Kalman filter doesn't work when I walk backwards
- GPS errors/jumps
- It can be used for count step?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mad-location-manager.