Git Product home page Git Product logo

Comments (13)

digitalentity avatar digitalentity commented on July 30, 2024

This can be done by using GPS_speed and GPS_ground_course, but code MUST check that GPS unit provide these values - it is not a GGA message, it's a RMC message and it can be disabled in GPS module for some reason.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

GPS data validity addressed in 6375c485a53eea080cd23bf85c0b0b3a75548305

from inav.

bubi-007 avatar bubi-007 commented on July 30, 2024

you 'can' disable everything.
but you can subscribe for the velocities in the ned frame:
0xB5,0x62, // Header Turn On UBLOX NAV-VELNED Msg
0x06,0x01, // ID
0x03,0x00, // Length
0x01, // Msg Class NAV
0x12, // Msg ID VELNED
0x01, // Rate 1
0x1E,0x67, // CK_A, CK_B

depends on what you like.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

The navigation code should not depend on a specific hardware feature (in your example an UBLOX GPS module). If GPS for whatever reason does not provide velocity information, navigation code must still function properly.

from inav.

bubi-007 avatar bubi-007 commented on July 30, 2024

i just take what works - ublox does and the rest is not so reliable.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Sticking with ublox-specific features would effectively remove support for nmea-only gps receivers. We can detect provided information and use what's best - that would be velocity info if available and coordinate difference as a fallback. This will improve things for ublox users and will not break anything for others.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Done in 05c115ba6edb79f5f64f8c756c2787d14e1336d0. Untested.
Edit: It just occured to me that this patch also prevents a possible bug with polled GPS (i.e.I2C-NAV). When no new data is available a polled gps module would return previous data, Coordinate difference would then yield zero velocity which will probably be incorrect. Using last known velocity is a better option IMO.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Did a test today. Didn't work as good as I thought it will be. However the test was done on poorly tuned copter, so it could be vibration messing up with velocity calculation from accelerometer. Need to re-tune and re-test. If it will work less reliable than coordinate derivative - this will be removed.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

Did another test today. Was working MUCH worse than plain old coordinate derivative. Closing.

from inav.

bubi-007 avatar bubi-007 commented on July 30, 2024

the current approach sucks.
bf and cf need a complete rewrite on this subject.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

@bubi-007
Please assist in getting this working,

from inav.

bubi-007 avatar bubi-007 commented on July 30, 2024

first i am integrating altitude hold using gps and accelerometer.
then i go into navigation.

from inav.

digitalentity avatar digitalentity commented on July 30, 2024

@bubi-007
Can you please share your code?

from inav.

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.