Skip to content

37/fix lap counting - #75

Open
Kamal-uva wants to merge 2 commits into
mainfrom
37/fix-lap-counting
Open

Kamal-uva wants to merge 2 commits into
mainfrom
37/fix-lap-counting

Conversation

@Kamal-uva

Copy link
Copy Markdown

Summary

Fixes lap counting so multiple laps completed within a single simulation timestep are counted correctly. Also preserves any remaining distance toward the next lap.

Testing

Added regression tests for multiple laps in one timestep.
Added regression test for partial lap distance carrying over between timesteps.
Verified normal one-lap-per-timestep behavior still works.

Related Issue

Closes #37

Notes

Uses a while loop instead of a single if so all completed laps within a timestep are recorded.

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.

Fix Lap Counting For Multiple Laps Per Timestep

1 participant