You are here

Send regular commands via CAN

1 post / 0 new
Husseinhazem
Offline
Last seen: 2 months 3 days ago
VESC Free
Joined: 2024-07-04 13:32
Posts: 1
Send regular commands via CAN

Based on the documentation , you can send all the commands specified in commands.c by dividing the command over multiple frames. My question is how to format the frames? My understanding so far is to send a frame with the id: COM_CAN_FILL_RX_BUFFER << 8 | CAN_ID and then send another frame with the id COM_CAN_PROCESS_RX_BUFFER << 8 | CAN_ID to process the command in the rx buffer. But what should I include in the payload part? just the normal command_id followed by the scaled payload? Or do I use the same format used in packet.c

Any advice would be appreciated! Thanks