On-line stator winding resistance and rotor permanent magnet flux estimation for dual-three phase PMSM drives