Syncronous mode for PM motors, not yet functional
Added parameter brkmax that specifies reen torque at foot-off
Added parameter udclim that shuts down the PWM when exceeded