Closed brentpicasso closed 1 month ago
Use arduino string parsing routines and this guide (there are other guides) to extract the data.
https://w3.cs.jmu.edu/bernstdh/web/common/help/nmea-sentences.php
Data values we want to extract:
Broadcast the following information:
===========
Speed in signed decimal degrees. 2 byte payload (Multiply value by 100 to get 2 digits of precision, pack into two bytes)
CAN byte offset 0-1
GPS quality indicator. 1 byte payload (value is typically 0,1,2)
Can byte offset 2
More details:
Read the GPS NMEA string that contains GPS data it arrives from the GPS module
Use arduino string parsing routines and this guide (there are other guides) to extract the data.
https://w3.cs.jmu.edu/bernstdh/web/common/help/nmea-sentences.php
Data values we want to extract:
Broadcast the following over CAN bus with the following format
Broadcast the following information:
CAN ID 100
===========
Can ID 101
Speed in signed decimal degrees. 2 byte payload (Multiply value by 100 to get 2 digits of precision, pack into two bytes)
CAN byte offset 0-1
GPS quality indicator. 1 byte payload (value is typically 0,1,2)
Can byte offset 2