luna-cycle / bldc

The code for my custom BLDC controller.
2 stars 0 forks source link

M600: Odometer support #2

Open nitrousnrg opened 2 years ago

nitrousnrg commented 2 years ago

Odometer is working since firmware builds 2022.04.29, but I know its not as accurate as it should because it doesn't exactly match the internal VESC odometer, which is highly accurate when compared against GPS data.

This is related to the way Bafang implemented the CANbus protocol to send odometer data to the display. I have a ton of data, logic analyzer logs, plots, and spreadsheets and couldn't figure it out yet how to store the 10th 10meter increment.

nitrousnrg commented 2 years ago

Addendum: There is a report of the odometer not working at all on the 840C display