@sh.add_function(dsp, inputs_kwargs=True, outputs=['planetary_speeds_in'])
def calculate_planetary_speeds_in(
motor_p2_planetary_speeds, motor_p2_planetary_speed_ratio=1):
"""
Calculates Gear box speed vector [RPM].
:param motor_p2_planetary_speeds:
Rotating speed of planetary motor P2 [RPM].
:type motor_p2_planetary_speeds: 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:
Planetary speed vector [RPM].
:rtype: numpy.array | float
"""
return motor_p2_planetary_speeds / motor_p2_planetary_speed_ratio