Skip to content

Question on Laptimes and total racetime #86

Answered by theOehrly
JochemZ asked this question in Q&A
Discussion options

You must be logged in to vote

I just took a look at this. There's two things here. You say, that the first lap is the problem. Well, the first lap is not entirely accurate but it's not 5 seconds off. The first lap inaccuracies that you observe are due to the fact, that the api does not provide lap start timestamps. Therefore we don't know when the first lap started. For races, I'm using the start time of the session as the start time of the first lap. This is not entirely accurate but pretty good. The intention behind it only was to allow getting telemetry for the first lap. Because for that we need a start and end time.

Now, about the total race time. Here is how you can calculate it fairly accurately. Note that Vers…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by theOehrly
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #70 on January 16, 2022 18:02.