App 2.22.2: gear badge shows P, R, N and D

Codes read on the owner's car with 2.22.1: 1 P, 2 R, 3 N, 4 D. Gear
maps them (unit-tested); other codes show no letter, unread "—". The
temporary gear list on the Logs tab is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
2026-10-24 19:10:03 +02:00
co-authored by Claude Opus 5.5
parent 16cc2746ef
commit c6643e7df2
12 changed files with 33 additions and 94 deletions
+6
View File
@@ -131,6 +131,12 @@ tyre pressures, GPS (lat, lon, elevation, heading) and the is_* flags. It does *
confirmed car facts, app structure, UI conventions, build/test/ship, documents. It replaces
upstream's EVABRPUploader text. The test emulator is now in the flake: `nix run .#car-emulator`
(Android 9 AOSP at 1920×720, 160 dpi; the car build installs as the system user — checked).
- 2026-10-24 — App 2.22.2 (branch `dashboard-cockpit`): the gear badge names all four gears.
The owner shifted through the lever with 2.22.1 and read the codes off the Logs tab: 1 P,
2 R, 3 N, 4 D (firmware SWI68-29958-1300R69). `Gear.label` maps them (unit-tested); any
other code shows no letter, unread "—". The gear list on the Logs tab, which existed only for
this, is gone again. Codes recorded in AGENTS.md and EVHardware's comments. Unit tests only;
the mapping itself comes from the car.
- 2026-10-24 — App 2.22.1 (branch `dashboard-cockpit`): the gear badge on the Dashboard and
Cockpit no longer guesses. It showed "D" for anything not in P, so N and R read as D. The app
only knew "in P or not"; EVHardware now passes on the car's raw gear code