Commit 6517ea8
kart-core: enable the Hori wheel under PlatformIO/CLI flashing
The bundled USBHost_t36 (v0.2) only claims Xbox One controllers whose VID/PID
are in a hardcoded table (Microsoft devices only). The Hori "Racing Wheel
Overdrive" (0F0D:0152) uses the standard Xbox One GIP interface and works once
its VID/PID is in that table — but without it JoystickController::claim() bails
and the wheel never enumerates. This is why the project previously had to flash
from the Arduino IDE (whose Teensyduino shipped a newer USBHost_t36 that knew
the wheel); every PlatformIO flash failed to see the wheel.
patch_usbhost_t36.py is a pre-build extra_scripts step that idempotently injects
the wheel's VID/PID into the framework's joystick.cpp before each build. The
Teensy can now be flashed from the CLI with the wheel working in production —
no Arduino IDE required. Verified on hardware: enum=1/type=3, axis 0 sweeps the
full ±32768 range and STEER set_cdeg tracks it proportionally to ±3000 (±30°),
streaming to the Steervo at 50 Hz (steer_link=1).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e640a14 commit 6517ea8
3 files changed
Lines changed: 67 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
178 | 188 | | |
179 | 189 | | |
180 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
0 commit comments