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

Holds information about a single lap.

Link to this section Summary

Types

t()

Lap information

Link to this section Types

@type sector_map() :: %{
  required(1) => F1Bot.F1Session.DriverDataRepo.Sector.t() | nil,
  required(2) => F1Bot.F1Session.DriverDataRepo.Sector.t() | nil,
  required(3) => F1Bot.F1Session.DriverDataRepo.Sector.t() | nil
}
@type t() :: %F1Bot.F1Session.DriverDataRepo.Lap{
  is_deleted: boolean(),
  is_outlier: boolean() | nil,
  is_valid: boolean(),
  number: pos_integer() | nil,
  sectors: sector_map(),
  time: Timex.Duration.t() | nil,
  timestamp: DateTime.t() | nil,
  top_speed: pos_integer()
}

Lap information

Link to this section Functions

Link to this function

is_neutralized?(lap, neutralized_intervals)

View Source
@spec is_neutralized?(t(), [F1Bot.F1Session.TrackStatusHistory.interval()]) ::
  boolean()
@spec is_outlap?(t(), F1Bot.F1Session.DriverDataRepo.Stints.t()) :: boolean()
Link to this function

is_outlap_after_red_flag?(lap)

View Source
@spec is_outlap_after_red_flag?(t()) :: boolean()