1e8c294a806433045762fffc6ab977749a93e940
User report: with the clutch in (pedal pressed, engine disconnected from wheels), steering left still produced resistance on R2. The throttle shouldn't have any feel when it's mechanically irrelevant. RacingDSX's throttle resistance formula is `avgAccel = sqrt(0.25*X^2 + 1.0*Z^2)` derived from the accelerometer alone. It never checks clutch state, so cornering G-forces keep producing trigger resistance even while the clutch pedal is floored. Bug. Fix: when Forza's clutch byte > 128 (clutch fully or mostly disengaged) bypass the entire throttle path \u2014 slip detection and non-slip Feedback both \u2014 and release the trigger. Uses the same one-shot 0x05 (active retract) on transition + steady-state 0x00 (no-op) pattern as the in-race \u2192 not-in-race transition (divergence #4) so we don't get the trigger-motor whine from re-asserting 0x05 every frame. Brake is unaffected: brake calipers operate independently of clutch state, so ABS feel during clutch-in is still correct. For auto-clutch users this also produces brief (~100 ms) trigger relaxations during shifts \u2014 physically accurate (the engine *is* momentarily disconnected during a shift) and matches the haptic feel of a real manual transmission. Documented as divergence #5 in the module docstring.
My NixOS configs ✨
Hosts
- mreow: My personal Framework 13 laptop
- yarn: Machine I usually just play games on. Boots into SteamOS-like interface.
- muffin: Homeserver, runs various services.
Desktop/Laptop
What do I use?
Browser: Firefox 🦊 (actually Zen Browser :p)
Text Editor: Doom Emacs
Terminal: ghostty
Shell: fish with the pure prompt
WM: niri
Background
- Got my background from here and used the command
magick input.png -filter Point -resize 2880x1920! output.pngto upscale it bilinearly
Description
Languages
Nix
80%
Python
15.7%
Emacs Lisp
2.4%
Shell
1.9%