@sh.add_function(dsp, outputs=['motor_p2_planetary_powers'])
def calculate_motor_p2_planetary_powers(
motor_p2_planetary_torques, motor_p2_planetary_speeds):
"""
Calculates power at planetary motor P2 [kW].
:param motor_p2_planetary_torques:
Torque at planetary motor P2 [N*m].
:type motor_p2_planetary_torques: numpy.array | float
:param motor_p2_planetary_speeds:
Rotating speed of planetary motor P2 [RPM].
:type motor_p2_planetary_speeds: numpy.array | float
:return:
Power at planetary motor P2 [kW].
:rtype: numpy.array | float
"""
from ...wheels import calculate_wheel_powers as func
return func(motor_p2_planetary_torques, motor_p2_planetary_speeds)