@sh.add_function(dsp, outputs=['motor_p1_powers'])
def calculate_motor_p1_powers(motor_p1_torques, motor_p1_speeds):
"""
Calculates power at motor P1 [kW].
:param motor_p1_torques:
Torque at motor P1 [N*m].
:type motor_p1_torques: numpy.array | float
:param motor_p1_speeds:
Rotating speed of motor P1 [RPM].
:type motor_p1_speeds: numpy.array | float
:return:
Power at motor P1 [kW].
:rtype: numpy.array | float
"""
from ...wheels import calculate_wheel_powers
return calculate_wheel_powers(motor_p1_torques, motor_p1_speeds)