identify_gears

identify_gears(times, velocities, accelerations, gear_box_speeds_in, velocity_speed_ratios, stop_velocity, plateau_acceleration, change_gear_window_width, idle_engine_speed=(0, 0))[source]

Identifies gear time series [-].

Parameters:
  • times (numpy.array) – Time vector [s].
  • velocities (numpy.array) – Velocity vector [km/h].
  • accelerations (numpy.array) – Acceleration vector [m/s2].
  • gear_box_speeds_in (numpy.array) – Gear box speed [RPM].
  • 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].
  • plateau_acceleration (float) – Maximum acceleration to be at constant velocity [m/s2].
  • change_gear_window_width (float) – Time window used to apply gear change filters [s].
  • idle_engine_speed ((float, float)) – Engine speed idle median and std [RPM].
Returns:

Gear vector identified [-].

Return type:

numpy.array