Peemouse / VescUart

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

setLocalProfile Error #5

Open mr-fish77 opened 4 years ago

mr-fish77 commented 4 years ago

Hello,

I'have try to use the setLocalProfile method from your library. But in my case, it is not working. When I send the data, the VESC reboots or it becomes bricked.

I may be wrong, but it seems to me that the issues are coming from the method used to send float32 over the UART port. In your library, you're using the buffer_append_float32 method whereas the Vesc firmware is waiting for floats formatted with buffer_append_float32_auto

Does the method was working on your side?

( I'm working on 4.2 Vesc from Flipsky with the 5.1 FW and an Arduino Micro. )

Thanks !

nick8596 commented 3 years ago

Hello, could you find a workaorund for this problem or it still exists? I haven't tested it yet because I don't have a ST-Link if my VESC becomes bricked. Thanks!

mr-fish77 commented 3 years ago

Hi !

Yes, I did a fork of Peemouse lib, with an update of the setLocalProfile() to work around this problem (https://github.com/mr-fish77/VescUart ). For me, it now seems to work very well. But if I were you I firstly bought an ST-Link before playing with it, just in case something goes wrong.

Good luck ^^

nick8596 commented 3 years ago

Thanks for this! I will try it within the next days, the ST-Link is ready^^

nick8596 commented 3 years ago

Thanks for the lib,this works great! One thing I have noticed is that my controller reboots random if I disconnect the esc. The problem occurs due to vibrations with disconnected cables during the drive. I am using a esp32 debit v1. Do you have a solution for this? Thanks!