@sh.add_function(dsp, outputs=['motor_p2_planetary_speed_ratio'])
def identify_motor_p2_planetary_speed_ratio(
planetary_speeds_in, motor_p2_planetary_speeds):
"""
Identifies planetary motor P2 speed ratio.
:param planetary_speeds_in:
Planetary speed vector [RPM].
:type planetary_speeds_in: numpy.array | float
:param motor_p2_planetary_speeds:
Rotating speed of planetary motor P2 [RPM].
:type motor_p2_planetary_speeds: numpy.array | float
:return:
Ratio between planetary motor P2 speed and planetary speed [-].
:rtype: float
"""
from .p4 import identify_motor_p4_speed_ratio as func
return func(planetary_speeds_in, motor_p2_planetary_speeds)