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

#include <CourseDetector.h>

+ Collaboration diagram for CourseDetector:

Public Member Functions

void acceptCandidate (int index)
 
 CourseDetector ()
 
int getDetectedCourseIndex () const
 
int getRankedMatchCount () const
 
const DetectionCandidategetRankedMatches () const
 
int getState () const
 
double getWaypointLat () const
 
double getWaypointLng () const
 
bool hasWaypoint () const
 
void init (CourseInfo *courses, int count)
 
bool isDetected () const
 
void rejectAllCandidates (float currentOdometer)
 
void reset ()
 
void setDetectionProximityMeters (float meters)
 
void setSpeedThresholdMph (float mph)
 
void update (double lat, double lng, float speedKmh, float totalOdometer)
 

Constructor & Destructor Documentation

◆ CourseDetector()

CourseDetector::CourseDetector ( )

CourseDetector - detects which course layout the driver is on. Ported from js/lib/course-detector.js

Member Function Documentation

◆ acceptCandidate()

void CourseDetector::acceptCandidate ( int  index)

◆ getDetectedCourseIndex()

int CourseDetector::getDetectedCourseIndex ( ) const

◆ getRankedMatchCount()

int CourseDetector::getRankedMatchCount ( ) const

◆ getRankedMatches()

const DetectionCandidate * CourseDetector::getRankedMatches ( ) const

◆ getState()

int CourseDetector::getState ( ) const

◆ getWaypointLat()

double CourseDetector::getWaypointLat ( ) const

◆ getWaypointLng()

double CourseDetector::getWaypointLng ( ) const

◆ hasWaypoint()

bool CourseDetector::hasWaypoint ( ) const

◆ init()

void CourseDetector::init ( CourseInfo courses,
int  count 
)

◆ isDetected()

bool CourseDetector::isDetected ( ) const

◆ rejectAllCandidates()

void CourseDetector::rejectAllCandidates ( float  currentOdometer)

◆ reset()

void CourseDetector::reset ( )

◆ setDetectionProximityMeters()

void CourseDetector::setDetectionProximityMeters ( float  meters)

◆ setSpeedThresholdMph()

void CourseDetector::setSpeedThresholdMph ( float  mph)

◆ update()

void CourseDetector::update ( double  lat,
double  lng,
float  speedKmh,
float  totalOdometer 
)

The documentation for this class was generated from the following files: