I'm am trying to create my own dashboard and 1 last feature im wanting to include and i can not figure out how to do it.
Basically i have lap times displayed and 1 of the times displayed is my average lap time, i want to have a delta that gives me the time of my current lap in relation to my average lap time
e.g
Average lap (1:35.0)
current lap (0.25) or (-0.25) which puts me on track to complete a lap in (1:35.25)
i have looked at other overlays that have a delta to best lap time which is great but i could do with 1 against the average lap time also
Any help is appreciated
Hi @narmsden ,
if you have your average lap time calculated you can simply calculate the time difference between your average lap time and the last lap. the ncalc code should look something like this:
timespantoseconds([PersistantTrackerPlugin.PreviousLap_00])-timespantoseconds([PersistantTrackerPlugin.SessionBest])
Here, this is an example for the difference of the last driven lap and the session best. The key is to use the timespantoseconds operator so that you can substract lap times. Should work the same way if you have the value for your average time.
Best regards
Andreas
Hi and thank you for your reply, I was hoping to (if possible) have a live delta difference to average lap time, however if this is not possible then your suggestion is a good compromise,
The idea being during a lap I have a reference as to how I'm looking on that current lap in reference to my average, in the hope that if I need to try and make up a.bit of time in a certain sector or 2 if that makes sense
Again appreciate your response and will use your suggestion if my preference is unable to be configured
Regards
Neil
@narmsden I just got your point. That would be cool, that's true. Unfortunately I can't help you with that one. I would assume that this is hard to program as would have to somehow average the live times of all the laps you have driven and then delta it to your current lap. No idea how this would work.
What I did, I created a screen with the 5 last lap times and the delta of each lap to my best time (using the timespantoseconds operator). With that and the live delta to my best time (this is already an available property) it at least gives you an idea how the current lap is going. With that, e.g. spins and pit stops are no problem as you can see the one lap in between that took you longer. With your initial idea, every stop or bigger mistake would destroy your average lap time anyhow.
Glad I could help at least a little.
Best regards,
Andreas