@sh.add_function(dsp, outputs=['motor_p0_rated_speed'])
def calculate_motor_p0_rated_speed(
motor_p0_maximum_power, motor_p0_maximum_torque):
"""
Calculate the rated speed of motor P0 [RPM].
:param motor_p0_maximum_power:
Maximum power of motor P0 [kW].
:type motor_p0_maximum_power: float
:param motor_p0_maximum_torque:
Maximum torque of motor P0 [N*m].
:type motor_p0_maximum_torque: float
:return:
Rated speed of motor P0 [RPM].
:rtype: float
"""
from .p4 import calculate_motor_p4_rated_speed as func
return func(motor_p0_maximum_power, motor_p0_maximum_torque)