Trying to get vesc data from the UART port, but I am for some reason getting the same data that it sends for the command.
So for example, a COMM_GET_VALUES command is sent in a packet with this data: 2 1 4 64 132 3 0 And when it detects a packet, it finds a packet with this data: 2 1 4 64 132 3 0 So essentially, I’m picking up the packet I’m suppose to be sending and never getting the right response back. I confirmed with my bluetooth app and I get the same packet sent for the COMM_GET_VALUES command, but I actually get good data back.
I’m using an ardunio Mega 2560, VESC Rx to Mega Tx, VESC Tx to Mega Rx.
Also using this library: https://github.com/R0b0shack/VESC-UART-Arduino/tree/Arduino-Mega-with-debugging-code
I tried the RollingGecko library, but I couldn’t get past the many compiling errors, even after many hours of debugging.
Any help is much appreciated!