@sh.add_function(dsp, outputs=['motor_p2_planetary_speeds'])
def calculate_motor_p2_planetary_speeds(
planetary_speeds_in, motor_p2_planetary_speed_ratio):
"""
Calculates rotating speed of planetary motor P2 [RPM].
:param planetary_speeds_in:
Planetary speed vector [RPM].
:type planetary_speeds_in: numpy.array | float
:param motor_p2_planetary_speed_ratio:
Ratio between planetary motor P2 speed and planetary speed [-].
:type motor_p2_planetary_speed_ratio: float
:return:
Rotating speed of planetary motor P2 [RPM].
:rtype: numpy.array | float
"""
return planetary_speeds_in * motor_p2_planetary_speed_ratio