Skip to navigation


Drivers: firstLapStarted

Name: firstLapStarted [Show more] Type: Variable Category: Drivers Summary: Flag to keep track of whether we have started the first lap of practice or qualifying
Context: See this variable in context in the source code References: This variable is used as follows: * ResetVariables uses firstLapStarted * UpdateLapTimers uses firstLapStarted

For practice and qualifying laps, firstLapStarted keeps track of whether we have started the first lap (at which point the lap timer starts). Before we reach the starting line, firstLapStarted is -33, which is the value it gets in ResetVariables for practice or qualifying laps. This is then incremented to 0 when we start the first lap. The value of firstLapStarted is decremented with each call to UpdateLapTimers for practice or qualifying, but only if bit 6 of updateDrivingInfo is set and firstLapStarted is non-zero. I am not sure why.
.firstLapStarted EQUB 0