joshjaysalazar / iRacingSafetyCarGenerator

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

Use safety car telemetry #19

Open joshjaysalazar opened 6 months ago

joshjaysalazar commented 6 months ago

Is your feature request related to a problem? Please describe. With the latest version of the SDK, data about the safety car (namely, whether or not it's in the pits, and where it is on track) is now accessible when in a replay. This may be the case when on track as well, and if it is, it should be used.

Describe the solution you'd like The safety car's telemetry should be added, as both safety car periods and rolling starts can benefit from this information.

Describe alternatives you've considered N/A

Additional context N/A

joshjaysalazar commented 1 month ago

I'm pushing this to v0.2, as it's not critical to functionality, nor would it significantly change the program behavior. It's still worth doing down the road, but it doesn't need to be done for this version.

joshjaysalazar commented 3 days ago

It turns out this is pretty significant when the leader pits under safety car, so I'm moving this back to a v0.1 fix. It's officially the cause of issues, and needs to be addressed.

joshjaysalazar commented 2 days ago

The safety car's index can be gotten from ir["DriverInfo"]. There's a key in there, PaceCarIdx.