Investigation of the torque calculation of a DC PM motor