abersailbot / bobalong

Bobalong is Aber Sailbot's microtransat attempt
0 stars 0 forks source link

Validate NMEA checksums in wind_sensor.cpp #22

Open colinsauze opened 8 years ago

colinsauze commented 8 years ago

All NMEA strings end in a checksum, use this to help detect corruption of the incoming data. Good explanation of how to do this at https://rietman.wordpress.com/2008/09/25/how-to-calculate-the-nmea-checksum/

kragniz commented 8 years ago

Also from a C implementation to read from the rowind: https://github.com/kragniz/librowind/blob/master/librowind.c#L75-L97