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

Go to the source code of this file.

Functions

static double geoHaversine (double lat1, double lon1, double lat2, double lon2)
 
static double geoHaversine3D (double prevLat, double prevLng, double prevAlt, double currentLat, double currentLng, double currentAlt)
 

Variables

static const double GEOMATH_RADIUS_EARTH = 6371.0 * 1000
 

Function Documentation

◆ geoHaversine()

static double geoHaversine ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)
inlinestatic

◆ geoHaversine3D()

static double geoHaversine3D ( double  prevLat,
double  prevLng,
double  prevAlt,
double  currentLat,
double  currentLng,
double  currentAlt 
)
inlinestatic

Variable Documentation

◆ GEOMATH_RADIUS_EARTH

const double GEOMATH_RADIUS_EARTH = 6371.0 * 1000
static

Geographic math utilities shared across DovesLapTimer, WaypointLapTimer, and CourseDetector.

These are static inline functions so any class can include this header without needing a separate .cpp or an instance of DovesLapTimer.

DovesLapTimer retains its own haversine()/haversine3D() public methods as thin wrappers for backward compatibility.