calibrate_gear_shifting_cmv

calibrate_gear_shifting_cmv(correct_gear, gears, engine_speeds_out, times, velocities, accelerations, motive_powers, velocity_speed_ratios, stop_velocity)[source]

Calibrates a corrected matrix velocity to predict gears.

Parameters:
  • correct_gear (callable) – A function to correct the predicted gear.
  • gears (numpy.array) – Gear vector [-].
  • engine_speeds_out (numpy.array) – Engine speed vector [RPM].
  • times (numpy.array) – Time vector [s].
  • velocities (numpy.array) – Vehicle velocity [km/h].
  • accelerations (numpy.array) – Vehicle acceleration [m/s2].
  • motive_powers (numpy.array) – Motive power [kW].
  • velocity_speed_ratios (dict[int | float]) – Constant velocity speed ratios of the gear box [km/(h*RPM)].
  • stop_velocity (float) – Maximum velocity to consider the vehicle stopped [km/h].
Returns:

A corrected matrix velocity to predict gears.

Return type:

dict