joshjaysalazar / iRacingSafetyCarGenerator

Software to generate custom safety cars during an iRacing race
GNU General Public License v3.0
1 stars 1 forks source link

If leader pits, !pacelaps command fails #5

Closed joshjaysalazar closed 4 months ago

joshjaysalazar commented 4 months ago

Describe the bug If the leader is in the pits as they cross the line, there's a chance that they've beaten the safety car to the line and the !pacelaps command will fail. This also means the leader probably has a penalty, but the point is it breaks the program.

To Reproduce Steps to reproduce the behavior:

  1. Race around Silverstone, as that's a track that it's easy to accidentally beat the pace car to the line in the pits
  2. Have the leader pit under yellow
  3. Watch the command fail if the leader crosses the line before the pace car.

Expected behavior The command should be sent as soon as the first on track car crosses the line.

Screenshots N/A

Additional context N/A