@sh.add_function(dsp, outputs=['motor_p2_planetary_maximum_power'])
def calculate_motor_p2_planetary_maximum_power(
motor_p2_planetary_rated_speed, motor_p2_planetary_maximum_torque):
"""
Calculate the maximum power of planetary motor P2 [kW].
:param motor_p2_planetary_rated_speed:
Rated speed of planetary motor P2 [RPM].
:type motor_p2_planetary_rated_speed: float
:param motor_p2_planetary_maximum_torque:
Maximum torque of planetary motor P2 [N*m].
:type motor_p2_planetary_maximum_torque: float
:return:
Maximum power of planetary motor P2 [kW].
:rtype: float
"""
from .p4 import calculate_motor_p4_maximum_power as f
return f(motor_p2_planetary_rated_speed, motor_p2_planetary_maximum_torque)