Skip to content

Commit 6cd5098

Browse files
committed
Update irsdk
- add support for TrkSurf and CarLeftRigth - add support for new pit commands
1 parent bc20365 commit 6cd5098

File tree

8 files changed

+851
-307
lines changed

8 files changed

+851
-307
lines changed

README.md

Lines changed: 66 additions & 63 deletions
Large diffs are not rendered by default.

sample-data/sessioninfo.json

Lines changed: 268 additions & 118 deletions
Large diffs are not rendered by default.

sample-data/telemetry-desc.json

Lines changed: 192 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@
9797
"count": 1,
9898
"type": "bool"
9999
},
100+
"PushToPass": {
101+
"name": "PushToPass",
102+
"desc": "Push to pass button state",
103+
"unit": "",
104+
"count": 1,
105+
"type": "bool"
106+
},
100107
"IsOnTrack": {
101108
"name": "IsOnTrack",
102109
"desc": "1=Car on track physics running with player in car",
@@ -174,6 +181,13 @@
174181
"count": 1,
175182
"type": "int"
176183
},
184+
"PlayerTrackSurfaceMaterial": {
185+
"name": "PlayerTrackSurfaceMaterial",
186+
"desc": "Players car track surface material type",
187+
"unit": "irsdk_TrkSurf",
188+
"count": 1,
189+
"type": "int"
190+
},
177191
"PlayerCarIdx": {
178192
"name": "PlayerCarIdx",
179193
"desc": "Players carIdx",
@@ -202,6 +216,13 @@
202216
"count": 1,
203217
"type": "int"
204218
},
219+
"PlayerCarWeightPenalty": {
220+
"name": "PlayerCarWeightPenalty",
221+
"desc": "Players weight penalty",
222+
"unit": "kg",
223+
"count": 1,
224+
"type": "float"
225+
},
205226
"CarIdxLap": {
206227
"name": "CarIdxLap",
207228
"desc": "Laps started by car index",
@@ -230,6 +251,13 @@
230251
"count": 64,
231252
"type": "int"
232253
},
254+
"CarIdxTrackSurfaceMaterial": {
255+
"name": "CarIdxTrackSurfaceMaterial",
256+
"desc": "Track surface material type by car index",
257+
"unit": "irsdk_TrkSurf",
258+
"count": 64,
259+
"type": "int"
260+
},
233261
"CarIdxOnPitRoad": {
234262
"name": "CarIdxOnPitRoad",
235263
"desc": "On pit road between the cones by car index",
@@ -734,6 +762,13 @@
734762
"count": 1,
735763
"type": "bool"
736764
},
765+
"CarLeftRight": {
766+
"name": "CarLeftRight",
767+
"desc": "Notify if car is to the left or right of driver",
768+
"unit": "irsdk_CarLeftRight",
769+
"count": 1,
770+
"type": "bitField"
771+
},
737772
"PitRepairLeft": {
738773
"name": "PitRepairLeft",
739774
"desc": "Time left for mandatory pit repairs if repairs are active",
@@ -790,13 +825,6 @@
790825
"count": 1,
791826
"type": "bool"
792827
},
793-
"SteeringWheelTorque": {
794-
"name": "SteeringWheelTorque",
795-
"desc": "Output torque on steering shaft",
796-
"unit": "N*m",
797-
"count": 1,
798-
"type": "float"
799-
},
800828
"SteeringWheelPctTorque": {
801829
"name": "SteeringWheelPctTorque",
802830
"desc": "Force feedback % max torque on steering shaft unsigned",
@@ -972,74 +1000,67 @@
9721000
"count": 1,
9731001
"type": "int"
9741002
},
975-
"dcBrakeBias": {
976-
"name": "dcBrakeBias",
977-
"desc": "In car brake bias adjustment",
978-
"unit": "",
1003+
"TireLF_RumblePitch": {
1004+
"name": "TireLF_RumblePitch",
1005+
"desc": "Players LF Tire Sound rumblestrip pitch",
1006+
"unit": "Hz",
9791007
"count": 1,
9801008
"type": "float"
9811009
},
982-
"WaterTemp": {
983-
"name": "WaterTemp",
984-
"desc": "Engine coolant temp",
985-
"unit": "C",
1010+
"TireRF_RumblePitch": {
1011+
"name": "TireRF_RumblePitch",
1012+
"desc": "Players RF Tire Sound rumblestrip pitch",
1013+
"unit": "Hz",
9861014
"count": 1,
9871015
"type": "float"
9881016
},
989-
"WaterLevel": {
990-
"name": "WaterLevel",
991-
"desc": "Engine coolant level",
992-
"unit": "l",
1017+
"TireLR_RumblePitch": {
1018+
"name": "TireLR_RumblePitch",
1019+
"desc": "Players LR Tire Sound rumblestrip pitch",
1020+
"unit": "Hz",
9931021
"count": 1,
9941022
"type": "float"
9951023
},
996-
"FuelPress": {
997-
"name": "FuelPress",
998-
"desc": "Engine fuel pressure",
999-
"unit": "bar",
1024+
"TireRR_RumblePitch": {
1025+
"name": "TireRR_RumblePitch",
1026+
"desc": "Players RR Tire Sound rumblestrip pitch",
1027+
"unit": "Hz",
10001028
"count": 1,
10011029
"type": "float"
10021030
},
1003-
"FuelUsePerHour": {
1004-
"name": "FuelUsePerHour",
1005-
"desc": "Engine fuel used instantaneous",
1006-
"unit": "kg/h",
1007-
"count": 1,
1008-
"type": "float"
1009-
},
1010-
"OilTemp": {
1011-
"name": "OilTemp",
1012-
"desc": "Engine oil temperature",
1013-
"unit": "C",
1031+
"dcAntiRollFront": {
1032+
"name": "dcAntiRollFront",
1033+
"desc": "In car front anti roll bar adjustment",
1034+
"unit": "",
10141035
"count": 1,
10151036
"type": "float"
10161037
},
1017-
"OilPress": {
1018-
"name": "OilPress",
1019-
"desc": "Engine oil pressure",
1020-
"unit": "bar",
1038+
"dcAntiRollRear": {
1039+
"name": "dcAntiRollRear",
1040+
"desc": "In car rear anti roll bar adjustment",
1041+
"unit": "",
10211042
"count": 1,
10221043
"type": "float"
10231044
},
1024-
"OilLevel": {
1025-
"name": "OilLevel",
1026-
"desc": "Engine oil level",
1027-
"unit": "l",
1045+
"dcBrakeBias": {
1046+
"name": "dcBrakeBias",
1047+
"desc": "In car brake bias adjustment",
1048+
"unit": "",
10281049
"count": 1,
10291050
"type": "float"
10301051
},
1031-
"Voltage": {
1032-
"name": "Voltage",
1033-
"desc": "Engine voltage",
1034-
"unit": "V",
1052+
"SteeringWheelTorque": {
1053+
"name": "SteeringWheelTorque",
1054+
"desc": "Output torque on steering shaft",
1055+
"unit": "N*m",
10351056
"count": 1,
10361057
"type": "float"
10371058
},
1038-
"ManifoldPress": {
1039-
"name": "ManifoldPress",
1040-
"desc": "Engine manifold pressure",
1041-
"unit": "bar",
1042-
"count": 1,
1059+
"SteeringWheelTorque_ST": {
1060+
"name": "SteeringWheelTorque_ST",
1061+
"desc": "Output torque on steering shaft at 360 Hz",
1062+
"unit": "N*m",
1063+
"count": 6,
10431064
"type": "float"
10441065
},
10451066
"RFcoldPressure": {
@@ -1140,6 +1161,69 @@
11401161
"count": 1,
11411162
"type": "float"
11421163
},
1164+
"WaterTemp": {
1165+
"name": "WaterTemp",
1166+
"desc": "Engine coolant temp",
1167+
"unit": "C",
1168+
"count": 1,
1169+
"type": "float"
1170+
},
1171+
"WaterLevel": {
1172+
"name": "WaterLevel",
1173+
"desc": "Engine coolant level",
1174+
"unit": "l",
1175+
"count": 1,
1176+
"type": "float"
1177+
},
1178+
"FuelPress": {
1179+
"name": "FuelPress",
1180+
"desc": "Engine fuel pressure",
1181+
"unit": "bar",
1182+
"count": 1,
1183+
"type": "float"
1184+
},
1185+
"FuelUsePerHour": {
1186+
"name": "FuelUsePerHour",
1187+
"desc": "Engine fuel used instantaneous",
1188+
"unit": "kg/h",
1189+
"count": 1,
1190+
"type": "float"
1191+
},
1192+
"OilTemp": {
1193+
"name": "OilTemp",
1194+
"desc": "Engine oil temperature",
1195+
"unit": "C",
1196+
"count": 1,
1197+
"type": "float"
1198+
},
1199+
"OilPress": {
1200+
"name": "OilPress",
1201+
"desc": "Engine oil pressure",
1202+
"unit": "bar",
1203+
"count": 1,
1204+
"type": "float"
1205+
},
1206+
"OilLevel": {
1207+
"name": "OilLevel",
1208+
"desc": "Engine oil level",
1209+
"unit": "l",
1210+
"count": 1,
1211+
"type": "float"
1212+
},
1213+
"Voltage": {
1214+
"name": "Voltage",
1215+
"desc": "Engine voltage",
1216+
"unit": "V",
1217+
"count": 1,
1218+
"type": "float"
1219+
},
1220+
"ManifoldPress": {
1221+
"name": "ManifoldPress",
1222+
"desc": "Engine manifold pressure",
1223+
"unit": "bar",
1224+
"count": 1,
1225+
"type": "float"
1226+
},
11431227
"RRcoldPressure": {
11441228
"name": "RRcoldPressure",
11451229
"desc": "RR tire cold pressure as set in the garage",
@@ -1245,53 +1329,109 @@
12451329
"count": 1,
12461330
"type": "float"
12471331
},
1332+
"RRshockDefl_ST": {
1333+
"name": "RRshockDefl_ST",
1334+
"desc": "RR shock deflection at 360 Hz",
1335+
"unit": "m",
1336+
"count": 6,
1337+
"type": "float"
1338+
},
12481339
"RRshockVel": {
12491340
"name": "RRshockVel",
12501341
"desc": "RR shock velocity",
12511342
"unit": "m/s",
12521343
"count": 1,
12531344
"type": "float"
12541345
},
1346+
"RRshockVel_ST": {
1347+
"name": "RRshockVel_ST",
1348+
"desc": "RR shock velocity at 360 Hz",
1349+
"unit": "m/s",
1350+
"count": 6,
1351+
"type": "float"
1352+
},
12551353
"LRshockDefl": {
12561354
"name": "LRshockDefl",
12571355
"desc": "LR shock deflection",
12581356
"unit": "m",
12591357
"count": 1,
12601358
"type": "float"
12611359
},
1360+
"LRshockDefl_ST": {
1361+
"name": "LRshockDefl_ST",
1362+
"desc": "LR shock deflection at 360 Hz",
1363+
"unit": "m",
1364+
"count": 6,
1365+
"type": "float"
1366+
},
12621367
"LRshockVel": {
12631368
"name": "LRshockVel",
12641369
"desc": "LR shock velocity",
12651370
"unit": "m/s",
12661371
"count": 1,
12671372
"type": "float"
12681373
},
1374+
"LRshockVel_ST": {
1375+
"name": "LRshockVel_ST",
1376+
"desc": "LR shock velocity at 360 Hz",
1377+
"unit": "m/s",
1378+
"count": 6,
1379+
"type": "float"
1380+
},
12691381
"RFshockDefl": {
12701382
"name": "RFshockDefl",
12711383
"desc": "RF shock deflection",
12721384
"unit": "m",
12731385
"count": 1,
12741386
"type": "float"
12751387
},
1388+
"RFshockDefl_ST": {
1389+
"name": "RFshockDefl_ST",
1390+
"desc": "RF shock deflection at 360 Hz",
1391+
"unit": "m",
1392+
"count": 6,
1393+
"type": "float"
1394+
},
12761395
"RFshockVel": {
12771396
"name": "RFshockVel",
12781397
"desc": "RF shock velocity",
12791398
"unit": "m/s",
12801399
"count": 1,
12811400
"type": "float"
12821401
},
1402+
"RFshockVel_ST": {
1403+
"name": "RFshockVel_ST",
1404+
"desc": "RF shock velocity at 360 Hz",
1405+
"unit": "m/s",
1406+
"count": 6,
1407+
"type": "float"
1408+
},
12831409
"LFshockDefl": {
12841410
"name": "LFshockDefl",
12851411
"desc": "LF shock deflection",
12861412
"unit": "m",
12871413
"count": 1,
12881414
"type": "float"
12891415
},
1416+
"LFshockDefl_ST": {
1417+
"name": "LFshockDefl_ST",
1418+
"desc": "LF shock deflection at 360 Hz",
1419+
"unit": "m",
1420+
"count": 6,
1421+
"type": "float"
1422+
},
12901423
"LFshockVel": {
12911424
"name": "LFshockVel",
12921425
"desc": "LF shock velocity",
12931426
"unit": "m/s",
12941427
"count": 1,
12951428
"type": "float"
1429+
},
1430+
"LFshockVel_ST": {
1431+
"name": "LFshockVel_ST",
1432+
"desc": "LF shock velocity at 360 Hz",
1433+
"unit": "m/s",
1434+
"count": 6,
1435+
"type": "float"
12961436
}
1297-
}
1437+
}

0 commit comments

Comments
 (0)