DovesLapTimer 4.0.0
GPS-based lap timing Arduino library — go-karts to race cars
Loading...
Searching...
No Matches
WaypointLapTimer.h File Reference
#include <Arduino.h>
#include "DovesLapTimer.h"
#include "GeoMath.h"
+ Include dependency graph for WaypointLapTimer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ProximityBufferEntry
 
class  WaypointLapTimer
 

Macros

#define WLT_STATE_DRIVING   2
 
#define WLT_STATE_IDLE   0
 
#define WLT_STATE_IN_PROXIMITY   3
 
#define WLT_STATE_WAITING_SPEED   1
 

Macro Definition Documentation

◆ WLT_STATE_DRIVING

#define WLT_STATE_DRIVING   2

◆ WLT_STATE_IDLE

#define WLT_STATE_IDLE   0

WaypointLapTimer - universal fallback lap timer ("Lap Anything" mode).

Uses single-point proximity detection instead of crossing lines. Algorithm:

  1. Wait for speed >= 20 mph, drop a waypoint
  2. Drive away (min distance traveled)
  3. On return to waypoint proximity, buffer approach points
  4. On exit from proximity, use closest-approach point's time for lap split
  5. Repeat for subsequent laps

Duck-typed to match DovesLapTimer's public API so the display/logger can use either timer interchangeably.

◆ WLT_STATE_IN_PROXIMITY

#define WLT_STATE_IN_PROXIMITY   3

◆ WLT_STATE_WAITING_SPEED

#define WLT_STATE_WAITING_SPEED   1