New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TireCompound API #237
Comments
Hey, cheers for looking at adding it. Other people might look to use it differently, but that's my usecase. |
Tell me more about how you choose. I've never run a race where this was an option. Is it something you have to choose before the race and/or qualifying? Or can you choose each time you pit to put on a different compound? Can you choose in a practice session? Are your choices different based on the track? Is the a count limit of each type? |
How it works is that you have to start with the tire you qualify with. This is enforced and that's why you see the CarIdxQualTireCompoundLocked var. Then while racing, you choose in a black box which tire you'd like to switch to when pitting. Soft, medium or hard. In the races there are a variety of strategies playing out, and some people are easier on their tires making them last longer which can be a great advantage. To amend on it: |
Ok, that helps a lot. iRacing has an API where I can send messages to them on what to do on your next pit. I saw someone asked in the forums to have the API amended with the ability to choose the tire compound as well. So, apparently it can only be chosen in their black box at the moment. Nothing new for them. They don't give much attention to this API and it generally lags in features. Some are still not there for many years in the API, such as, Wedge adjustments. So that it doesn't take much room on the widgets, would simply displaying S,M,or H be sufficient? |
I wonder if iRacing will use this when they get around to rain tires? I'm going to post a question on the forums. |
For myself personally S, M and H would be sufficient or even preferred, F1 people will know and don't need the full name. I think they'll definitely use this for other compounds, such as rain tires, going forward. |
Can you provide a list of all the cars that have this option that you know of? |
Only the McLaren MP4-30 so far has the tire compounds. |
How quickly do you usually add these kind of things out of curiosity? |
Something this easy, a couple of weeks. I’ve slotted it for the next beta.
- Jeff Gilliam
… On Oct 17, 2020, at 1:22 PM, linusareng ***@***.***> wrote:
How quickly do you usually add these kind of things out of curiosity?
Not to rush you at all, I just want something to look forward to and have a rough sketch if it is within next week, before new years or sometime later. A beta branch/release would be fine, added everything else I want on my widget just the tires missing :)
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
new API is /Car/(CARIDENTIFIER)/Gauge/TireCompound Had to make ValueNext return ValueCurrent as iRacing is not logging in the telemetry what you have selected in the black box. Updated the Tire and TireMeasurements widgets to display it. This will be released in the 1.15 first BETA soon. |
(SIMRacingApps/SIMRacingApps#237) TireCompound API - /Car/(CARIDENTIFIER)/Gauge/TireCompound
(SIMRacingApps/SIMRacingApps#237) TireCompound API - /Car/(CARIDENTIFIER)/Gauge/TireCompound
(SIMRacingApps/SIMRacingApps#237) TireCompound API - /Car/(CARIDENTIFIER)/Gauge/TireCompound
iRacing now outputs your tire compound in the telemetry. Add to the API and possible some of the widgets. Also make it a text widget.
@linus Areng suggested this.
My thoughts and notes:
It probably should be part of the Gauge design. Tire attribute for sure. What other gauges would need a similar attribute? What would a good generic name be? So, if a gauge is changeable, like tires, you get to choose it as well.
Should act like a tire measurement, similar to the temps and pressures?
iRacing puts out these arrays in the vars that returns an enumerated number:
CarIdxTireCompound
CarIdxQualTireCompound
CarIdxQualTireCompoundLocked
Haven't found the enum in the SDK, but here's my guess.
0 = SOFT
1 = MEDIUM
2 = HARD
Need to learn more about how they are used/controlled in a Race. Maybe the ability to choose prior to pitting in the PitController widget.
The text was updated successfully, but these errors were encountered: