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

Coordinates processing, generates events and holds data (F1Bot.F1Session.DriverDataRepo.DriverData) belonging to each driver (e.g. laps, top speeds, car telemetry, car position), as well as the overall session statistics, such as the overall fastest lap and top speed.

Link to this section Summary

Types

t()

Repository for all car, lap time, and stint-related data

Link to this section Types

@type t() :: %F1Bot.F1Session.DriverDataRepo{
  all_lap_times: [{integer(), integer()}],
  best_stats: F1Bot.F1Session.DriverDataRepo.BestStats.t(),
  drivers: map()
}

Repository for all car, lap time, and stint-related data

Link to this section Functions

Link to this function

driver_summary(repo, driver_number, track_status_history)

View Source
Link to this function

fetch(repo, driver_number)

View Source
Link to this function

process_transcript(repo, transcript)

View Source
Link to this function

push_position(repo, driver_number, position)

View Source
Link to this function

push_stint_data(repo, driver_number, stint_data)

View Source
Link to this function

push_telemetry(repo, driver_number, telemetry)

View Source
Link to this function

push_timing_data(repo, timing_data)

View Source
Link to this function

session_best_stats(repo)

View Source