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