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

tracks where start line of track is a high AI spline position (like 0.80) don't work well #7

Open
jamessanford opened this issue Oct 13, 2015 · 3 comments
Assignees

Comments

@jamessanford
Copy link
Owner

For example, the Nordshleife AI spline starts at something like 0.80, and becomes 0.00 after you've been driving a minute. The current code ties the lap start and the AI spline too closely, and also assumes the AI spline position will only increase as we drive around the track.

Here's a comment from commit d03edbe :


I think the Nordschleife doesn't work very well with DeltaBar because the AI spline doesn't "start" at the beginning of the track.

Needs some bug fixing, like "when the lap timer starts incrementing, use the current location as the start, and allow it to wrap around zero", so that a recorded Nordschleife lap can look something like "0.80", "... 0.99", "1.00", "1.10", ... "1.70", "1.79"


@jamessanford jamessanford self-assigned this Oct 13, 2015
@jamessanford
Copy link
Owner Author

I think this is more difficult than it initially seems.

I wrote a workaround at c635cd0 but then I realized it probably does not work right, because AC doesn't always "start the lap timer" in the right spot -- sometimes it leaves it running.

https://github.com/jamessanford/assetto-corsa-deltabar/tree/issue_7

@jamessanford
Copy link
Owner Author

commit c635cd0 probably also has bugs if you drive back and forth over the point at which the AI spline wraps

@StoneSpb
Copy link
Contributor

Need time to go deeper into internal logic - right now it looks like a magic =)

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

2 participants