@sh.add_function(dsp, outputs=['motor_p0_torques'])
def calculate_motor_p0_torques(motor_p0_powers, motor_p0_speeds):
"""
Calculates torque at motor P0 [N*m].
:param motor_p0_powers:
Power at motor P0 [kW].
:type motor_p0_powers: numpy.array | float
:param motor_p0_speeds:
Rotating speed of motor P0 [RPM].
:type motor_p0_speeds: numpy.array | float
:return:
Torque at motor P0 [N*m].
:rtype: numpy.array | float
"""
from ...wheels import calculate_wheel_torques
return calculate_wheel_torques(motor_p0_powers, motor_p0_speeds)