Skip to content

Conversation

@nicholas-tangerine
Copy link
Contributor

@nicholas-tangerine nicholas-tangerine commented Oct 24, 2025

see most recent commit message

please only merge after lap count to minimize merge conflict

Copy link
Contributor

@MatinQurban MatinQurban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicholas created LapCounter class to replace updateLapTime and related functions in VehicleState class.
This new class holds a LapCounterData struct that holds the position of the start-finish line, current position of the vehicle, and last read position of the car. As well as a timer and lap counter.
This class has functions to reset lap counter and gps data, updates lap counter if certain criteria are met, and read the timer.

Also added the new class to cmake executable list

@MatinQurban MatinQurban merged commit be93c6b into formulaslug:main Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants