Currently I am using the development branch of RollingGecko/VescUartControl to control two Flipsky 4.12 50A VESCs with an Arduino Mega. I find that the setBrakeCurrent() function has a similar result to the IB (!) button in VESCTool. This appears to be intented to slow rotation rather than cause a complete stop. I want to be able to lock up the wheels if rotation is detected when the controller is in neutral.
The HB (!) button in VESC tool provides the type of braking that I need. How can I call this function from an Arduino?
Thanks for your advice.