Consolidate obd_reader.py onto obdcore (single source of truth) #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The terminal tool
obd_reader.pystill carries its own copy of: the ELM327 link logic, the Ford 6.0 PID table (FORD_60_PIDS), DTC decode/parse, and the DTC database — all duplicated from the now-canonicalobdcorepackage (link.py,profile.py/registry.py,store.py). Two sources of truth drift over time.Goal
Migrate
obd_reader.pyto import fromobdcoreso the terminal tool and the GUI share one source of truth and the vehicle-profile system.Acceptance
obd_reader.pyusesobdcore.ElmLink+ a loadedProfile(defaultprofiles/ford-6.0-powerstroke.json) instead of its hardcodedELM/FORD_60_PIDS/DTC tables.--crank,--dash [crank|vitals|full],--ford,--pid,--scan,--clear,--watch.Notes
Medium priority — not blocking; the duplication is currently stable and correct (formulas already match). Do as an isolated-worktree task. Touches only
obd_reader.py(+ possibly small additive helpers inobdcore).