Commit 83e421f
Motor sound: wheel-aware speed curve, About polish, i18n
Engine RPM mapping
- New maxSpeedRefKmh field on EngineSoundEngine, wired from
WheelRepository.maxSpeedCap, so the speed→RPM curve uses the actual
wheel cap instead of a hardcoded 80 km/h. V11 (50 km/h cap), V14
(~100), P6 (~150) each get a curve that runs from idle at 0 km/h to
redline near their own top speed.
- Gearless mapping switched from linear to sqrt so EUC cruising speeds
(10-30 km/h) actually rev the engine — on a 100 km/h wheel, 20 km/h
now sits at ~45% rev band instead of 25%, and gearbox per-gear bands
scale with the wheel as well.
- Gearbox preview scenario uses the same wheel-aware top speed.
- Reset smoothing (smoothedRpm/Load, brake/decel envelopes, lastPwm,
lastTelemetryAtMs) on preview exit so a real ride starting right
after doesn't inherit scenario state.
- Drop dead `lastSpeedAtMs` and unused `kotlin.math.max` import.
About dialog
- Bump max height 680dp → 820dp (~20% taller).
- Thin horizontal divider above each subtitle ("Thanks to:" and
"Resources & libraries:"), subtitles bumped from titleSmall to
titleMedium so the two tables read as discrete sections.
- Expand the BigSoundBank credit so every sampled engine in the
picker is named.
Localization
- Add 37 motor-sound UI strings across all 13 locales (es, es-419, de,
fr, it, nl, pl, pt-rBR, ru, sv, da, no, uk, zh): section title,
description, safety dialog, engine type + source tags, volume,
muffler / gearbox / when-parked / decel / engine-brake / voice-duck
rows + their options, headphones-only switch.
- Each locale now at 435 strings (default 477). Engine preset names
(V8 muscle, V12 Italian, Cobra, Aston Martin, etc.) stay English
and fall back via Android; they're proper nouns / brand names.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2d13a9b commit 83e421f
17 files changed
Lines changed: 603 additions & 16 deletions
File tree
- app/src/main
- java/com/eried/eucplanet
- audio
- service
- ui/dashboard
- res
- values-b+es+419
- values-da
- values-de
- values-es
- values-fr
- values-it
- values-nl
- values-no
- values-pl
- values-pt-rBR
- values-ru
- values-sv
- values-uk
- values-zh
Lines changed: 33 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
69 | | - | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
125 | 139 | | |
126 | 140 | | |
127 | 141 | | |
| |||
172 | 186 | | |
173 | 187 | | |
174 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
175 | 197 | | |
176 | 198 | | |
177 | 199 | | |
| |||
191 | 213 | | |
192 | 214 | | |
193 | 215 | | |
194 | | - | |
| 216 | + | |
195 | 217 | | |
196 | | - | |
| 218 | + | |
197 | 219 | | |
198 | 220 | | |
199 | | - | |
| 221 | + | |
200 | 222 | | |
201 | 223 | | |
202 | 224 | | |
| |||
331 | 353 | | |
332 | 354 | | |
333 | 355 | | |
334 | | - | |
335 | 356 | | |
336 | 357 | | |
337 | 358 | | |
338 | 359 | | |
339 | 360 | | |
340 | 361 | | |
| 362 | + | |
341 | 363 | | |
342 | 364 | | |
343 | 365 | | |
344 | 366 | | |
345 | 367 | | |
346 | 368 | | |
347 | 369 | | |
348 | | - | |
349 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
350 | 374 | | |
351 | 375 | | |
352 | | - | |
353 | | - | |
| 376 | + | |
354 | 377 | | |
355 | 378 | | |
356 | 379 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
123 | 131 | | |
124 | 132 | | |
125 | 133 | | |
| |||
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
1003 | 1008 | | |
1004 | 1009 | | |
1005 | | - | |
| 1010 | + | |
1006 | 1011 | | |
1007 | 1012 | | |
1008 | | - | |
| 1013 | + | |
1009 | 1014 | | |
1010 | 1015 | | |
1011 | 1016 | | |
| |||
1046 | 1051 | | |
1047 | 1052 | | |
1048 | 1053 | | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1049 | 1059 | | |
1050 | 1060 | | |
1051 | | - | |
| 1061 | + | |
1052 | 1062 | | |
1053 | 1063 | | |
1054 | | - | |
| 1064 | + | |
1055 | 1065 | | |
1056 | | - | |
| 1066 | + | |
1057 | 1067 | | |
1058 | 1068 | | |
1059 | 1069 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
462 | 501 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
426 | 465 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
442 | 481 | | |
0 commit comments