You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After ending an old race and starting a new race, the MPG number will show an MPG in the thousands.
This is probably because the app doesn't know that we are on a new track, and as far as it knows the car travelled several hundred meters in an instant.
This, in turn, is because the car will "travel" from the ending coordinates of the last race to the starting coordinates of the current race instantaneously.
For instance, I could end a race in the middle of a lap on the Nurbringring (and have the coordinates [-1000, 0, 500]) and start a new race on Laguna Seca (and have the new coordinates [0,0,0]). To the program, the car has travelled ~1118 meters in a single tick. This is what's causing the MPG to shoot up into the thousands during the start of a new race.
I would suggest implementing an auto-reset feature triggered by the start of a new race, which in turn is triggered when the lap counter does anything but increment itself by 1.
The text was updated successfully, but these errors were encountered:
After ending an old race and starting a new race, the MPG number will show an MPG in the thousands.
This is probably because the app doesn't know that we are on a new track, and as far as it knows the car travelled several hundred meters in an instant.
This, in turn, is because the car will "travel" from the ending coordinates of the last race to the starting coordinates of the current race instantaneously.
For instance, I could end a race in the middle of a lap on the Nurbringring (and have the coordinates [-1000, 0, 500]) and start a new race on Laguna Seca (and have the new coordinates [0,0,0]). To the program, the car has travelled ~1118 meters in a single tick. This is what's causing the MPG to shoot up into the thousands during the start of a new race.
I would suggest implementing an auto-reset feature triggered by the start of a new race, which in turn is triggered when the lap counter does anything but increment itself by 1.
The text was updated successfully, but these errors were encountered: