In a permanent magnet, brushless motor, a sensor or device is known as a rotary encoder is utilized to detect the angle of the motor shaft. t