Class LapPerformance

Class Documentation

class LapPerformance

Class to measure lap performance.

Public Functions

LapPerformance()

Constructor for the LapPerformance class.

void initialize(int num_points, int max_laps, float starting_strip)

Initializes the LapPerformance object with the number of points in the lap.

Parameters:
  • num_points – Number of points in the lap

  • max_laps – Maximum number of laps to measure

void reset()

Resets the LapPerformance object.

LapPerformanceData update(int index)

Updates the LapPerformance object with the current index.

Parameters:

index – Current index in the lap