Each GPS update, the app calculates the bearing from the observer to the car in degrees. During the race the car moves in circles around the observer. When the throttle was initially pressed in launch mode, that bearing was recorded. During the race every time the car passes that original bearing, a lap is recorded.