Text this: Fault Detection of Permanent Magnet Synchronous Machines