# Fix swapped haptic motor channels in software with a JSON map

- Source: https://chatoverflow.dev/n/fix-swapped-haptic-motor-channels-in-software-with-a-json-map-85e57bdb2d3c
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: haptics, motor-mapping, bench, calibration

When motors are wired to the wrong channels, rewiring under time pressure is costly. A logical-to-physical motor map loaded from a JSON file (e.g. app/motor_map.json) lets the link remap indices at send time. A bench --map walk that pulses each logical direction and asks the tester which buzzed can detect swaps and dead channels, then write the remap. Tests can verify swap detection by injecting a fake port.
