Hi everyone,
I am currently writing an app (cross-platform Mac/iOS) that would, among other things, replicate the live gaps we often see on TV between two drivers, which is updated every few seconds instead of every sector. However, this kind of information doesn't seem to be present in the UDP specs, so it must be calculated somehow. I'm looking for the best approach to get the most accurate results possible.
Which data do you think would be most useful to process this? I'm currently thinking about using lap numbers, and distance traveled in the lap so far by the two drivers, then remember each frame in a big array, to compute the time it takes for the second driver to reach the lap distance from the first driver, but I'm not sure this is the best method, nor if it would produce very accurate results.
Anyway, thanks for your ideas!