maddevsio / mad-location-manager

Mad Location Manager is a library for GPS and Accelerometer data "fusion" with Kalman filter
MIT License
533 stars 154 forks source link

Incompatible matrix dimensions. #56

Closed klagupl closed 4 years ago

klagupl commented 4 years ago

Im trying to port this to Java, and there is some code I dont understand. For example: matrix R is created with 2x2 dimensions: f->R = MatrixAlloc(measureDimension, measureDimension); f->kf = KalmanFilterCreate(4, 2, 2); And then rebuildR function assigns 4x4 matrix to it. double velSigma = posSigma * 1.0e-01; MatrixSet(f->kf->R, posSigma, 0.0, 0.0, 0.0, 0.0, posSigma, 0.0, 0.0, 0.0, 0.0, velSigma, 0.0, 0.0, 0.0, 0.0, velSigma); }

Same thing with Zk vector. Im not an expert in C, so maybe someone could explain this?

klagupl commented 4 years ago

I found there is java implementation in this repo, so I'm closing it.

Lezh1k commented 4 years ago

https://github.com/maddevsio/mad-location-manager/issues/48