RollingGecko / VescUartControl

Arduino library to interface with the VESC bldc over UART.
Other
141 stars 75 forks source link

Support fw 3.28 #14

Closed Teslafly closed 6 years ago

Teslafly commented 6 years ago

fw 3.28 is out with the new vesc-tool and it breaks this library. I am going to try and debug it and if i get it working i'll mention it here, but it would be nice to have this working. right now it is returning messages of length 54, which i'm guessing is some default response considering you're checking for len >55, but haven't gotten as far as to reading the messages.

RollingGecko commented 6 years ago

Please test this branch https://github.com/RollingGecko/VescUartControl/tree/VESC6 It has already the changes made on the interface. If it works I will merge it to the master.

Andy

RollingGecko commented 6 years ago

Any Test results?

isctylr commented 6 years ago

By updating to the new library, I get data from UART, but sending my joystick values does not seem to work. As in, I'm not actually sure they are sending, but the motors do not move in reaction either way. Is there a way to read these values on vesc-tool? I didn't make any changes to my code other than switching the library to VESC6.

isctylr commented 6 years ago

Solved!There's a new packet header in the COMM section in VESC6. I just copied the enum in bldc/datatypes.h to your library.

RollingGecko commented 6 years ago

Can you send me the file or make a pull request?

RollingGecko commented 6 years ago

Already merged new datatypes.h. But tester required! Please check this: https://github.com/RollingGecko/VescUartControl/issues/15