DovesLapTimer 4.0.0
GPS-based lap timing Arduino library — go-karts to race cars
Loading...
Searching...
No Matches
CourseInfo Struct Reference

#include <CourseDetector.h>

+ Collaboration diagram for CourseInfo:

Public Attributes

float lengthFt
 
const char * name
 

Detailed Description

CourseDetector - detects which course layout the driver is on.

Algorithm:

  1. Wait for speed >= 20 mph (driver is moving)
  2. Create a "waypoint" at that position
  3. Wait for driver to return near the waypoint (completed ~1 lap)
  4. Compare driven distance to each course's lengthFt
  5. Build ranked list of candidates within tolerance
  6. CourseManager validates candidates via raceStarted sanity check

Member Data Documentation

◆ lengthFt

float CourseInfo::lengthFt

◆ name

const char* CourseInfo::name

The documentation for this struct was generated from the following file: