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

Coordinates processing and stores data for a driver, e.g. laps, fastest lap, car telemetry, stint data and more.

Link to this section Summary

Types

t()

Driver session data

Link to this section Types

@type t() :: %F1Bot.F1Session.DriverDataRepo.DriverData{
  current_lap_number: non_neg_integer(),
  laps: F1Bot.F1Session.DriverDataRepo.Laps.t(),
  number: pos_integer(),
  position_hist: F1Bot.F1Session.Common.TimeSeriesStore.t(),
  stints: F1Bot.F1Session.DriverDataRepo.Stints.t(),
  telemetry_hist: F1Bot.F1Session.Common.TimeSeriesStore.t(),
  transcripts: F1Bot.F1Session.DriverDataRepo.Transcripts.t() | nil
}

Driver session data

Link to this section Functions

Link to this function

outlap_lap_numbers(self)

View Source
@spec outlap_lap_numbers(t()) :: [pos_integer()]
Link to this function

personal_best_stats(self)

View Source
Link to this function

process_transcript(self, transcript)

View Source
Link to this function

push_position(self, position)

View Source
Link to this function

push_stint_data(self, stint_data)

View Source
Link to this function

push_telemetry(self, telemetry)

View Source
Link to this function

push_timing_data(self, timing_data, all_lap_times)

View Source