-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
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 Verstappen did receive a 5 second penalty at the 2021 Saudi Arabian GP which was added to his total race time!
This is pretty close to the actual value. I don't know when the clock for total race time is actually started. Is it when the lights go out or when each driver crosses the start/finish line? Maybe there's some difference here. A quicker way to get just the delta at the end, withouth calculating the total race time is
|
Beta Was this translation helpful? Give feedback.
-
Many, thnx! i'm not a python/pandas expert so did not know about the iloc option to select a certain row. think i will use the times from ERGAST for reporting, and your times pure for telemetry/graphs etc. Thnx Again! |
Beta Was this translation helpful? Give feedback.
-
The total racetime for each driver start at the same time, which is when the lights go out. A first lap time is not officially published for competitors as the first lap distance completed is firstly different for every driver (due to the staggered nature of the starting grid) and secondly not necessarily a full lap distance dependent on the location of the official timing line to the starting grid. All subsequent lap times (lap 2 onwards) are therefore suitable comparative due to being "complete" laps over nominally the same distance (ignoring the driving lines/characteristics of the individual drivers) |
Beta Was this translation helpful? Give feedback.
-
@juniormoose79 Thank you for that information. This just gave me an idea for how the difference between the official and our calculated total race time could potentially be used to improve data synchronization. |
Beta Was this translation helpful? Give feedback.
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…