Commit ef39ed5
Fix AC→SVJ compatibility: resolve rim/tire dims from tires.sets
The AC→SVJ converter stores authoritative rim data in tires.sets.<key>
rather than in suspension.{corner}.wheel (where rim_diameter is hardcoded
to a 0.432 m placeholder). This commit adds tires.sets fallback logic to
both the Python analyser and the JS browser so all 1 297-car libraries
produce correct rim sizes, loaded radii, and Pacejka curves.
Python (svj_analyze.py):
- _tire_key() gains optional tires_sets param; when set_ref is present,
rim.diameter / rim.width_nominal / overall_diameter÷2 override wheel values
- summarize_vehicle() and sanity_check() both fetch tires.sets and pass it in
JS browser (svj_library_browser.html):
- Per-corner loop builds effW overlay from tires.sets when set_ref present,
so tireKey() receives correct dimensions instead of the placeholder
- Pacejka fallback: when suspension.tire has no pacejka block, reads
tires.sets.<set_ref>.pacejka_mf52 and maps MF6.2 p-coefficients
(pCy1/pDy1/pKy1/pEy1) to pseudo B/C/D/E for plotting
Result: rim catalogue now spans 5"–24" correctly (was flat 17" for all cars);
all 908 unique tire variants carry loaded_radius_mm; Pacejka tab populated.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e03830f commit ef39ed5
2 files changed
Lines changed: 87 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
218 | 244 | | |
219 | 245 | | |
220 | 246 | | |
| |||
253 | 279 | | |
254 | 280 | | |
255 | 281 | | |
| 282 | + | |
256 | 283 | | |
257 | 284 | | |
258 | 285 | | |
| |||
302 | 329 | | |
303 | 330 | | |
304 | 331 | | |
305 | | - | |
| 332 | + | |
306 | 333 | | |
307 | 334 | | |
308 | 335 | | |
| |||
1015 | 1042 | | |
1016 | 1043 | | |
1017 | 1044 | | |
| 1045 | + | |
1018 | 1046 | | |
1019 | 1047 | | |
1020 | 1048 | | |
| |||
1038 | 1066 | | |
1039 | 1067 | | |
1040 | 1068 | | |
| 1069 | + | |
1041 | 1070 | | |
1042 | 1071 | | |
1043 | 1072 | | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1049 | 1079 | | |
1050 | 1080 | | |
1051 | 1081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
500 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
501 | 520 | | |
502 | 521 | | |
503 | 522 | | |
| |||
519 | 538 | | |
520 | 539 | | |
521 | 540 | | |
522 | | - | |
| 541 | + | |
523 | 542 | | |
524 | 543 | | |
525 | 544 | | |
| |||
534 | 553 | | |
535 | 554 | | |
536 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
537 | 583 | | |
538 | 584 | | |
539 | 585 | | |
| |||
0 commit comments