- Code: Select all
stat_start('PositionInClass')
I want it to return the first valid value, but if the race starts and this channel is invalid, it'll just return nothing.
I also was hoping to find something that returns the lap time. Not the current lap time, but the beacon-to-beacon lap time to use in some math equations for things like average lap times and rolling 5-lap averages. Currently I'm using:
- Code: Select all
stat_end('Calc Lap Time' [s], 1, range_change("Outings:Laps"))
but this creates values at the sample rate, which if I set it to 'auto' is 1kHz, and if I set it lower gives me imprecise results. This also creates 'sample' number of laptimes, and that's not something I want, as I want one lap time per lap, not a few per second or 1000 per second.
I'm also curious if there's a way to check if a lap is 'trusted' or not in a math equation?