Whether or not I can simulate lap data  I have a question about the lap statistics "decimal minutes/seconds" --
Is the output of the function a decimal number of seconds which will always be less than 59?
In other words, is a value of 2.30 "two minutes and thirty seconds" or something else?
Discussion on the Lua Scripting capabilities for RaceCapture/Pro. Also see the <a href="http://autosportlabs.net/RaceCapturePro_Lua_Scripting">Lua Scripting Guide</a>
3 posts • Page 1 of 1
Yep, it does! But just to make it even clearer for others:brentp wrote:Hi,
Decimal minutes means the fractional part is decimal. Example:
2:30 would be 2.5 decimal minutes.
Hope this helps!
The decimal value of the lap statistic is the equivalent of:
x (sec) / 60
So to convert the decimal part to actual seconds, multiply back by 60.
In Lua terms:
lap_seconds_portion would be the actual number of seconds and not the decimal.
Code: Select all
lap_seconds_portion = (getLapTime()%1)*60