Miimization of torque ripple by voltage vector modulation in direct torque controlled ac drives analysis and implementation