benjamin wrote:The foc full brake function used 0 modulation, meaning that it alternates between having all low side fets on and having all high side fets on. The bldc full brake will just have all low side fets on. This means that they do the same thing, which is shorting all motor phases. The only difference is that foc has some dead time while switching between the low and high side, while bldc has not.
I've been experimenting with using VESC as absorber/braking motor in ESC testing stand (ESC under test is connected to motor which is mechanically coupled to motor VESC is braking).
When I'm slowly increasing brake current for VESC, there is a threshold after which motor current suddenly becomes positive and braking torque seems to be smaller. Even if the brake current is decreased below this threshold, motor current stays positive.
I quickly skimmed mcpwm_foc.c but I could not find where the "full braking" starts. I would prefer to not activate full braking and instead keep the motor current at the maximum negative value.