@sh.add_function(dsp, outputs=['motor_p0_speeds'])
def calculate_motor_p0_speeds_v1(motor_p0_powers, motor_p0_torques):
"""
Calculates rotating speed of motor P0 [RPM].
:param motor_p0_powers:
Power at motor P0 [kW].
:type motor_p0_powers: numpy.array | float
:param motor_p0_torques:
Torque at motor P0 [N*m].
:type motor_p0_torques: numpy.array | float
:return:
Rotating speed of motor P0 [RPM].
:rtype: numpy.array | float
"""
from ...wheels import calculate_wheel_torques
return calculate_wheel_torques(motor_p0_powers, motor_p0_torques)