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
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.
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.
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
This post is under review.