Git Product home page Git Product logo

Comments (7)

Lezh1k avatar Lezh1k commented on August 18, 2024

Hello. Thank you for interesting in our project.
You are definitely right about covariance matrix Q.

We have this :

double velDev = accDev * m_predictCount;
        double posDev = velDev * m_predictCount / 2;
        double covDev = velDev * posDev;

        double posSig = posDev * posDev;
        double velSig = velDev * velDev;

        double Q[] = {
                posSig, 0.0, covDev, 0.0,
                0.0, posSig, 0.0, covDev,
                0.0, 0.0, velSig, 0.0,
                0.0, 0.0, 0.0, velSig
        };

As you said, posSig should be posSigX and posSigY, but we can get speed measurements only from GPS receiver, so for both directions we have one deviation. That's why we use 1 value.

from mad-location-manager.

RonitBustin avatar RonitBustin commented on August 18, 2024

That's not what I meant. The off-diagonal values of Q are the cross covariance values. As everything is real in this scenario, the matrix must be symmetric (with respect tot he man diagonal). Thus the matrix should be:
double Q[] = {
posSig, 0.0, covDev, 0.0,
0.0, posSig, 0.0, covDev,
covDev, 0.0, velSig, 0.0,
0.0, covDev, 0.0, velSig
};

with two additional covDev values instead of two of the zeros in the lower part of the matrix.

from mad-location-manager.

Lezh1k avatar Lezh1k commented on August 18, 2024

I see now ))) Will try it today 👍

from mad-location-manager.

Lezh1k avatar Lezh1k commented on August 18, 2024

Thank you ))

from mad-location-manager.

RonitBustin avatar RonitBustin commented on August 18, 2024

Hi,
Saw that you uploaded a new version a couple of days ago.
The matrix Q in GPSAccKalmanFilter.java is still non-symmetric.
Wanted to know if there was a problem when one changes it to be symmetric?
Thanks,
Ronit

from mad-location-manager.

Lezh1k avatar Lezh1k commented on August 18, 2024

Hello.
I didn't upload anything yet. Version is still 0.1.11 :)

from mad-location-manager.

RonitBustin avatar RonitBustin commented on August 18, 2024

OK. Thanks!

from mad-location-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.