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