Developing a robust commutation function for Switched Reluctance Motors to reduce torque ripple and improve tracking performance.