Code: Select all
/* Shut down PWM on zero voltage request */
if (0 == amp || 0 == dir)
{
timer_disable_break_main_output(PWM_TIMER);
}
Please can someone confirm which is correct. I'm happy to update the wiki to remove the contradiction.If they are both low, no current is fed to the motor making this essentially the neutral position.
Correction, this will not be a neutral position. Rather, it will be almost parking, if you turn on neutral at speed, there will be a very hard stop regen!