@sh.add_function(dsp, inputs_kwargs=True, outputs=['engine_speeds_out'])
def calculate_engine_speeds_out(motor_p0_speeds, motor_p0_speed_ratio=3):
"""
Calculates the engine speed [RPM].
:param motor_p0_speeds:
Rotating speed of motor P0 [RPM].
:type motor_p0_speeds: numpy.array | float
:param motor_p0_speed_ratio:
Ratio between motor P0 speed and engine speed [-].
:type motor_p0_speed_ratio: float
:return:
Engine speed [RPM].
:rtype: numpy.array | float
"""
return motor_p0_speeds / motor_p0_speed_ratio