Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing excess lap count #18

Open
chancehudson opened this issue Jun 26, 2019 · 0 comments
Open

Preventing excess lap count #18

chancehudson opened this issue Jun 26, 2019 · 0 comments

Comments

@chancehudson
Copy link
Member

Example case:

A rider finishes a race then does 3 cooldown laps on the course before the next race starts. Assuming the lapCount is set to 10 and this rider does 13 laps the final 3 laps should not be included.

This can be solved by taking the leader finish time and then only consuming the finish times that are immediately after this time. e.g. the rider above passes 3 additional times after their final lap. Assuming this rider is not the leader the finish time will be the time that they cross the finish line after the leaders.

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

No branches or pull requests

1 participant