bit-dream / candied

A zero dependency DBC parser written in pure Javascript/Typescript
MIT License
31 stars 9 forks source link

Fix decode not returning correct values #25

Closed bit-dream closed 1 year ago

bit-dream commented 1 year ago

This pull request does a few things:

  1. Addresses a bug in the decode function not returning correct values. The main decode method has been cleaned up and revamped to handle data appropriately. Decoded data was validated against time tested tools such as MATLAB's VNT toolbox and Kvaser's CANKing. A bunch of unit tests were added to support these changes.
  2. Added some additional utility functions on the Can class so that it's easier to create BoundMessages.
  3. General clean up