Could someone explain to me what is different between the functions mcpwm_set_current(float current); and mcpwm_set_brake_current(float current);
We are trying to generate as much electrical power as possible using a VESC 4.12 (like a few others in here are too). Our setup is two motors mechanically coupled directly. One is driving the other which is acting as generator.
So far we have tried to run the generator in RPM control, and drive the other motor in current mode to 'overpower' the generator (regenerative braking). With this method we have achieved about 120W from a 200g motor. However the efficiency seems very low, as we input about 40% more from the driver than we get out of the generator.
The question is therefore would it be a significant difference to run the RPM control loop with a regenerative brake ( mcpwm_set_brake_current(float current); ) instead of the default ki( mcpwm_set_current(float current); ) as it seems like it is doing now?