A method and system are provided for controlling a motor 10. The method includes obtaining via a signal unit 60 electrical signals of the motor. The electrical signals include a motor torque and an angular velocity. The method further includes calculating via the calculating component a voltage phase angle of a voltage vector. A command torque, the motor torque, the angular velocity and a voltage amplitude of the voltage vector are inputs of the calculating component. The method further modulating via a modulator 40 the voltage phase angle and the voltage amplitude to a switching signal controlling an inverter 20. The method further includes converting via the inverter a direct current voltage to the voltage vector according to the switching signal and applying the voltage vector to the motor 10.