GithubHelp home page GithubHelp logo

Weight Matrix about gogps_java HOT 3 OPEN

gogps-project avatar gogps-project commented on July 17, 2024
Weight Matrix

from gogps_java.

Comments (3)

ZiglioUK avatar ZiglioUK commented on July 17, 2024

For example, a satellite with a very low elevation (2.5), leads to a weight of:
weight = 1 / Math.pow(Math.sin(elevation * Math.PI / 180), 2) = 517.7

Why 1/...? shouldn't weights be bigger when elevation is higher? it seems counterintuitive

from gogps_java.

ege010 avatar ege010 commented on July 17, 2024

Hi @ZiglioNZ!

What is used there is actually a cofactor matrix, the inverse of which is used to weight observations in the least-squares solution. Here you can find the corresponding code in the MATLAB version: http://sourceforge.net/p/gogps/code/HEAD/tree/trunk/positioning/least_squares/LS_SA_code.m#l104

DTM values are introduced as "pseudo-observations", with their own observation error (line 699 in this section: http://sourceforge.net/p/gogps/code/HEAD/tree/trunk/positioning/kalman/goGPS_KF_DD_code_phase_loop.m#l665).
You can check also equations (22) and (30) here: https://www.researchgate.net/publication/257836193_goGPS_Open_Source_Software_for_Enhancing_the_Accuracy_of_Low-cost_Receivers_by_Single-frequency_Relative_Kinematic_Positioning

from gogps_java.

ZiglioUK avatar ZiglioUK commented on July 17, 2024

I've actually already ported the Matlab code for DTM to Java and have been using it for a few months.
I've used it both with the Google Maps Elevation API (that is probably not precise enough for your needs) and without just to add a soft constraint when I only have 4 satellites.
I haven't found necessarily an increase in precision but when you use the DTM it converges much more quickly. I've found at times with 5 or 6 satellites I need to run up to 400 iterations before the update is smaller than 1m.

See https://github.com/Sirtrack/goGPS/blob/snapshotGPS/src/main/java/org/gogpsproject/ReceiverPosition.java (line 1302)

// Add height soft constraint
double lam = Math.toRadians(this.getGeodeticLongitude());
double phi = Math.toRadians(this.getGeodeticLatitude());
double hR_app = this.getGeodeticHeight();
...

I'd like to merge my contributions into the main project here (thank you for upgrading my access rights).
The problem with this file (ReceiverPosition.java) is it's just too big.
That's why #17
In order to foster innovation (!) we should be able to experiment without risking to break things for everyone.

from gogps_java.

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.