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

Stores current and maximum lap number for the session

Link to this section Summary

Link to this section Types

@type t() :: %F1Bot.F1Session.LapCounter{
  current: (integer() | nil) | nil,
  lap_timestamps: map(),
  total: (integer() | nil) | nil
}

Link to this section Functions

Link to this function

timestamp_to_lap_number(lap_counter, timestamp)

View Source
Link to this function

update(lap_counter, current_lap, total_laps, timestamp)

View Source