-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit conversion problems in NMEA013 library #44
Comments
Ok, will have a look at this. |
Sorry for the long delay. |
I did a similar fix months ago, the stuff is now literally on board. Unfortunately, Timo Lappalainen has a hard time with git and versioning, so it might be challenging to catch his changes (assert of test data?). |
Do you maybe have some test data containing rot from real life? |
I have no NMEA certified ROT sources. |
Have you tested my NMEA Simulator? |
Hi Timo, |
I discovered some unit conversion problems in ttlappalainen/NMEA0183#37 .
Whileas it would be simple to fix this in
esp32-nmea2000/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp
Line 884 in 78ed97f
and
esp32-nmea2000/lib/nmea2kto0183/N2kDataToNMEA0183.cpp
Line 1049 in 78ed97f
I hope that @ttlappalainen will update his library upstream.
This issue can be seen in the line with #43 where it seems to be favorable to have some means of control over filtering/conversion of the data being passed around, as I suspect there are devices in the wild which send rad/s, deg/s, rad/min, deg/min, ... without caring for units. Another possibility would be to calculate values from existing data (e.g. calculate ROT from heading change over time).
This project is so great and so much effort seems to have flown into all this complex code. It would be great to see this evolve from silver to gold.
The text was updated successfully, but these errors were encountered: