Giter Site home page Giter Site logo

Handle dual GPS in ekf2 about px4-ecl HOT 7 CLOSED

px4 avatar px4 commented on August 22, 2024
Handle dual GPS in ekf2

from px4-ecl.

Comments (7)

priseborough avatar priseborough commented on August 22, 2024

It is the jump in position that is the problem. One option is to apply an offset to the GPS when you switch so that it matches the previous active unit (if available) or the EKF position at the time of the measurement (need to allow for GPS delay). That position offset could then be decay radially to zero at a slow rate rate, eg 0.1 m/s.

from px4-ecl.

CarlOlsson avatar CarlOlsson commented on August 22, 2024

@priseborough this should be easiest to handle outside of the ecl library, do you agree?

from px4-ecl.

priseborough avatar priseborough commented on August 22, 2024

Agree. My preference is to perform any sensor switchover outside the library. This would include other examples of dual sensors (Baro, airspeed, etc).

from px4-ecl.

CarlOlsson avatar CarlOlsson commented on August 22, 2024

@LorenzMeier I implemented this for us and it works well, plots from switching GPS module twice while airplane is stationary on the ground. Test ratio > 1 corresponds to GPS being rejected by the EKF.
1
2
I can push it upstream if it is interesting for you but I am not sure how to decide about when to switch module in a generic way, maybe we could add a field to vehicle_gps_position of which module is in use?

from px4-ecl.

priseborough avatar priseborough commented on August 22, 2024

UBlox receivers provide a number of quality metrics that can be used for selection logic (horizontal accuracy, speed accuracy, etc). Speed accuracy is usually an early indicator of data quality problems, whereas the horizontal and vertical position accuracy figure takes longer to degrade.

If your solution involves decaying a switchover position offset correction offset to zero, it may help to offset correct the reported velocity for rate of position offset decay.

from px4-ecl.

CarlOlsson avatar CarlOlsson commented on August 22, 2024

Thanks Paul. This is indeed very interesting and we should definitely look into it at some point, right now we base the switching logic only on regime (hover/cruise). However, what I meant was more focused on in which module to switch GPS and how to publish it. Maybe that is indeed a bigger question on how to handle redundant sensors in general such that every module doesn't have to decide on its own. If the best place to have the logic is not in the EKF then I can push the code right away and base the switching on a boolean coming from somewhere, if not then we could start looking into the best switching logic right away.

from px4-ecl.

priseborough avatar priseborough commented on August 22, 2024

I am closing this and have re-opening the issue in PX4/Firmware PX4/PX4-Autopilot#5759

from px4-ecl.

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.