View Source F1Bot.F1Session.DriverDataRepo.Laps (f1_bot v0.7.0)

Stores all information about laps driven by a driver in the current session, e.g. lap number, lap time and timestamp.

Link to this section Summary

Functions

Determine outliers in the given laps based on lap time compared to all other laps that occurred around a similar time (+/- @outlier_window_ms). Lap is marked as an outlier if it's greater than factor * minimum lap time in the window.

Link to this section Types

@type t() :: %F1Bot.F1Session.DriverDataRepo.Laps{
  data: %{required(pos_integer()) => F1Bot.F1Session.DriverDataRepo.Lap.t()}
}

Link to this section Functions

Link to this function

fetch_by_number(laps, lap_no)

View Source
Link to this function

mark_outliers(laps, all_lap_times, around_ts \\ nil)

View Source

Determine outliers in the given laps based on lap time compared to all other laps that occurred around a similar time (+/- @outlier_window_ms). Lap is marked as an outlier if it's greater than factor * minimum lap time in the window.

Link to this function

personal_best_stats(laps)

View Source
Link to this function

push_speed(self, current_lap_number, speed)

View Source
Link to this function

push_timing_data(self, current_lap_number, timing_data)

View Source