prediction_gears_gsm_v1¶
-
prediction_gears_gsm_v1
(correct_gear, gsm, times, velocities, accelerations, motive_powers)[source]¶ Predicts gears with a gear shifting model (mgs) [-].
Parameters: - correct_gear (callable) – A function to correct the gear predicted.
- gsm (MSG) – A gear shifting model (cmv or gspv or dtgs).
- 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].
Returns: Predicted gears.
Return type: numpy.array