An optimised algorithm for velocity estimation method for motor drives