Text this: Dual closed-loop vector PI control and deadbeat current control of permanent magnet synchronous motor