Hi everyone,
I’m having an issue when trying to read current values from a VESC( 4.10) over CAN. I’m using an LPC microcontroller to monitor the CAN messages, and everything works well except for the current. The values jump around a lot and don’t look correct at all.
When I read the same data over UART with the LPC, or when I connect the VESC Tool directly over USB, the current readings are completely stable and accurate. All the other status values over CAN, like rpm, duty and temperature, are also correct, and sending commands works fine too. Because of that I don’t really think the problem is in my parsing code.
It makes me wonder if the current values sent over CAN are somehow different from what is provided over UART or USB, maybe more instantaneous, so they need to be filtered on the receiving side.
If anyone has run into this before or has suggestions on what I should check, I’d really appreciate the advice. I can also share raw CAN frames, parsed values, firmware version, or details about my setup if that helps.
Thanks, Vuk