SolidGeek / VescUart

An Arduino library for interfacing with the VESC over UART
GNU General Public License v3.0
179 stars 91 forks source link

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

Closed joseguerr closed 1 year ago

joseguerr commented 5 years ago

Hi there @SolidGeek

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!

SolidGeek commented 4 years ago

Hi @Joseguerr, sorry for the late reply. I have not much experience in the CAN communication between master and slave VESC, so, unfortunately, I cannot help with this at the moment. Do you have any documentation/examples of the usage of COMM_FORWARD_CAN? I would like to implement this in the future.

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

SystemDiagnosticss commented 3 years ago

Any updates in this case?

SystemDiagnosticss commented 3 years ago

@loicalini why do you think thats in this fork CAN forwarding is implemented?

SolidGeek commented 1 year ago

This was implemented by a pull request 👍