Coder Social home page Coder Social logo

Reference Values about nmea2000 HOT 3 OPEN

ttlappalainen avatar ttlappalainen commented on September 28, 2024
Reference Values

from nmea2000.

Comments (3)

ttlappalainen avatar ttlappalainen commented on September 28, 2024

I do not have other NMEA 2000 documents than public available documents. If you buy NMEA Documents, you sign agreement, that you will not publish information. So main references are PGNDefns.N2kDfn.xml file on OpenSkipper project, which I update and which is originally based on Kees CANboat project pgn.h. New information comes from testing and different sources.

I updated wind reference to library. I do not know, why N2kWind_True_water=4 was missing. But as far as I know, there is no ref=5. Which example you mean?

Any certified manufacturer can not use their own definitions on any values. New definitions will be first added to NMEA database by organization. But since NMEA 2000 is closed system, that new information will not be available as public.

from nmea2000.

PeterSte avatar PeterSte commented on September 28, 2024

Thanks for explaning the background your sources, and for updating N2kWind_True_water=4.
So with other words the reference that I found was right and it was only a missing parameter in the library that has been updated.

You are absolutly right, there is no "ref=5". This was just a "calculation fault" :-) from my side because its 5 ref's (0-4) and I was not thinking and started counting at 1 instead at 0. Sorry for the confusion 👎

But just for my curiosity. If a ref=5 for the "wind PGN" would arrive on NMEA2000 Bus and if I would have extended the code to a "if ref=5", would your library forward this formaly not correct "ref=5" to the "if ref=5" or would it block this value?

from nmea2000.

ttlappalainen avatar ttlappalainen commented on September 28, 2024

It cast readed byte to tN2kWindReference, so in principle you could test if (ref==5). But on the other hand that violates code and NMEA 2000 definitions. You can not do it to other directions: tN2kWindReference ref=5; You could do it with tN2kWindReference ref=(tN2kWindReference) 5; but then you again violating code rules.

from nmea2000.

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.