Real-time implementation of discrete Fourier transform phase analysis and fault tolerant control for PMSM in electric vehicles. Issue 1 (2nd January 2018)