RollingGecko / VescUartControl

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

How to use COMM_FORWARD_CAN to send commands to slave VESC #26

Open joseguerr opened 5 years ago

joseguerr commented 5 years ago

Hi there @RollingGecko

Have been searching for some code that has this function implemented so I can use it in the arduino, but so far without success. I don't know what are the transformations required in the messages to actually send such command, using the libraries that are currently created.

The idea here was to sent commands to a slave vesc, for instance, setting RPM's. I've tested the CAN master-slave communication through VESC tool and is working well. It is just the code adaptation in c++ that I have no idea how to perform. I don't even know how is supposed to work with such function, while sending a command.

I would appreciate the help of anyone who reads this. Have a nice day!

loicalini commented 4 years ago

https://github.com/astulnikov/ESk8Arduino/blob/405fe467cace6ee455dba3c70ad3bc34eb63c2aa/lib/VescUart/src/VescUart.h

^check out this similar library that has CAN forwarding implemented