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