Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

output nmea sentences for wind speed and direction.


netarar Mar 8, 2023 03:59 AM

Hi... im trying to convert the aparent wind speed and direction from a cr300 into nmea somehow. I'm thinking of building a python app but I wanna make sure that there's no a easier way. It's to feed a navigation radar with this info to calculate the real wind speed and dir while sailing.

Thank you.

NC


pokeeffe Mar 10, 2023 04:46 PM

netarar Mar 11, 2023 02:39 PM

Ohhh... thank you... that sentece outputs strings made with the data i want right??

Edit: I saw the link... thank you so much. Ill try to work with that.


JDavis Mar 14, 2023 10:05 PM

You will need to calculate a checksum to append to the end of the string before output. The other equipment will probably reject the string without the checksum.


pokeeffe Mar 15, 2023 04:19 PM

That's true, it might be okay but you're better off calculating a real checksum. There's lots of good resources online for NMEA checksums. 

Build the data part of the message with `sprintf`, calculate the checksum (for-loop + xor) and format that into hexadecimal with `sprintf`, then insert the data msg and checksum into the nmea message delimiters with `sprintf`. 

sprintf my beloved


lpauchet Feb 14, 2024 05:45 PM

This post is under review.

Log in or register to post/reply in the forum.