Skip to content
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

Closed
speters opened this issue Jun 30, 2022 · 8 comments
Closed

Unit conversion problems in NMEA013 library #44

speters opened this issue Jun 30, 2022 · 8 comments

Comments

@speters
Copy link

speters commented Jun 30, 2022

I discovered some unit conversion problems in ttlappalainen/NMEA0183#37 .

Whileas it would be simple to fix this in

void convertROT(const SNMEA0183Msg &msg){

and
void HandleROT(const tN2kMsg &msg){

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.

@wellenvogel
Copy link
Owner

Ok, will have a look at this.

@wellenvogel
Copy link
Owner

Sorry for the long delay.
I' ve implemented the factor right now on my side. As I do not have any test data - could you try this change?
I would like to wait with a new release until we have some testing...
So If you need a prebuild firmware I can build one.

@speters
Copy link
Author

speters commented Nov 17, 2022

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?).

@wellenvogel
Copy link
Owner

Do you maybe have some test data containing rot from real life?
I could create some artificial ones an test e.g. against canboat - but that is not the real truth...

@speters
Copy link
Author

speters commented Nov 17, 2022

I have no NMEA certified ROT sources.
My problem started with implementing a ROT source and seeing some sinks/displays/software disagree about ROT values...

@ttlappalainen
Copy link

Have you tested my NMEA Simulator?

@wellenvogel
Copy link
Owner

Hi Timo,
yes I was heavily using it for testing.
But at the end it's a simulator again .
I'm always happy to additionally have some "real world" data for testing.
Already had a couple of interesting experiences on what devices send...

@wellenvogel
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants