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