pmgducati / Slot-Car-Finish-Line

Pole Position Tower and Finsh line for Artin Slot Car Race Track
0 stars 0 forks source link

First Lap is always 30+ seconds #10

Closed pmgducati closed 8 months ago

pmgducati commented 8 months ago

The Cars total time is zero at start, so first lap is always fist lap + the time it takes to get through the menu

pmgducati commented 8 months ago

The following was added to the Race_Metrics Function initialization: cars[0].total_time = Current_Time; cars[1].total_time = Current_Time; cars[2].total_time = Current_Time; cars[3].total_time = Current_Time;

Now all cars time is reset and the exact time the race starts, giving the correct 1st lap time