Is there a creative way to control braking voltage, and not current in firmware? Say you have a battery in parallel with the VESC which is in constant regen mode and controlling an engine driven bldc, and with the load in parallel too. Rather than say Max Regen current is say 100 amps, a way to say Max Regen voltage is a function of instantaneous battery voltage plus 1 volt?
In short: Nope
In order to feed back energy you must charge the battery. If you don't, you don't feed back energy and your controller will blow up.
A workaround is a waste gate that is getting commands form the ESC and burns energy into heat via a big braking resistor.
Thanks, I was thinking of something similar using a Mosfet with a zener diode that would regulate and shunt the output voltage, but wanted to see if there was some way in software to do the same first. This is the circuit I am trying which I find limits the output voltage to 48.7 V for a 12S battery . The Mosfet can soak up about 5 volts at 100 amps, so I just need to keep the VESC output under 54 volts or so
https://www.dropbox.com/s/f3pmsysdnxl3dg5/circuit.png?dl=0