Thanks a lot for this CAN interface, it works fine for me with a Nucleo Board and with a Microchip CAN BUS Analyser.
I just encountered a little problem :
I have configured my Odrive in current control and set the node ID of Axis0 to 0. The command ID is 0x00E.
As I understand, the Current Setpoint signal has a factor of 0.01. So when I want to set the current to 1A, I need to send 100 (0x64).
I get this message :
When I send it, it works fine and when I checked with Odrivetool, the current_set_point is correctly set to 1.0f. I tried with different integer values like 2A, 3A, etc… and it works fine too.
My problem is when I want to send a decimal number, like 1.5A for example, I need to send 150 (0x96). So my message is :
But I send this, the current_set_point in Odrive is 1.0f. Same when I want to set 2.5A, the current_set_point is 2.0f. It looks like the value is always round to the smallest nearest integer value.
I get the same behaviour with negativ current setpoint.
Does anyone encounter the same problem?
Thanks a lot for your reading