@sh.add_function(dsp, outputs=['motor_p2_planetary_speeds'])
def calculate_motor_p2_planetary_speeds_v1(
motor_p2_planetary_powers, motor_p2_planetary_torques):
"""
Calculates rotating speed of planetary motor P2 [RPM].
:param motor_p2_planetary_powers:
Power at planetary motor P2 [kW].
:type motor_p2_planetary_powers: numpy.array | float
:param motor_p2_planetary_torques:
Torque at planetary motor P2 [N*m].
:type motor_p2_planetary_torques: numpy.array | float
:return:
Rotating speed of planetary motor P2 [RPM].
:rtype: numpy.array | float
"""
from ...wheels import calculate_wheel_torques as func
return func(motor_p2_planetary_powers, motor_p2_planetary_torques)