@sh.add_function(dsp, outputs=['motor_p0_maximum_power_function'])
def define_motor_p0_maximum_power_function(
motor_p0_maximum_power, motor_p0_rated_speed):
"""
Define the maximum power function of motor P0.
:param motor_p0_maximum_power:
Maximum power of motor P0 [kW].
:type motor_p0_maximum_power: float
:param motor_p0_rated_speed:
Rated speed of motor P0 [RPM].
:type motor_p0_rated_speed: float
:return:
Maximum power function of motor P0.
:rtype: function
"""
from .p4 import define_motor_p4_maximum_power_function as func
return func(motor_p0_maximum_power, motor_p0_rated_speed)