App 2.22.1: gear badge shows only P; Logs list the raw gear codes
The badge said "D" for every gear that was not P, so N and R read as D. EVHardware now passes on the raw gear code; the badge shows P for 1, no letter for codes not yet mapped, "—" when unread. The Logs tab lists each change of the code with time and speed, to match R, N and D on the car. Emulator only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
@@ -131,6 +131,15 @@ 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.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
|
||||
(`EVHardware.getGearRaw`, `EnergySnapshot.gearRaw`; `isVehicleInPark` is built on it).
|
||||
`Gear.label`: 1 → "P" (the only established code), any other code → no letter, unread → "—".
|
||||
To map R, N and D, the Logs tab lists every change of the code with time and speed
|
||||
(`GearLog`, last 12, kept in preferences). Checked on the emulator with a throwaway build
|
||||
cycling codes 1–4 (pill shows P on 1, nothing on 2–4; the Logs tab lists each change). Not
|
||||
tried on the car; the codes for R, N and D are still to be read there.
|
||||
- 2026-10-24 — App 2.22.0 (branch `dashboard-cockpit`, from `dashboard-gauges`): a third Overview
|
||||
style, "Cockpit", designed without a reference: three segmented rings (`RingView`, Canvas) —
|
||||
battery (0…100 %, range inside, below 20 % in the warning colour), power with the speed and the
|
||||
|
||||
Reference in New Issue
Block a user