Driveline screen: boot into it, add engine torque, revise shaft scaling
Boot screen: land on the Driveline data screen instead of the SquareLine gauges Home screen. Done in display_init after ui_init while the backlight is still off (no flash of the wrong screen); Home stays reachable by swiping off Driveline. Engine torque added to the screen, decoded from 0x0A8 TORQ_AVL (available/ delivered torque), bits 12-23, signed x0.5 Nm. The user identified the ID and supplied the spreadsheet formula (D2*256+D1)/32, which is algebraically bits12-23 x0.5; confirmed against the repo's 0x0A8 worked example (24 Nm). Firmware masks D1's low nibble (that's the alive counter, not torque - the repo example shows ALIV=8 there) and sign-extends so overrun reads negative. 0x0AA TORQ_DVCH is the same layout but driver demand - identical at idle, diverges under load - so the delivered value is the right one to show. Output-shaft scaling revised: a direct Launch reference (output speed 128 rpm at our raw 1192) implies ~0.107, contradicting the earlier x0.125 (which would predict 149). One eyeballed cross-tool point, so nothing is adopted - the field stays raw counts - but 0.125 is downgraded in firmware and wiki, and the Launch now gives a direct rpm reference so calibration is just a multi-point sweep and a linear fit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -114,9 +114,24 @@ A smooth, gently-rising upshift schedule — textbook M57N at light throttle. Fi
|
||||
|
||||
The gearbox is a confirmed **6HP26X** (user, 2026-07-17), so the ratio table is right. The one assumption left standing is **max-output-per-gear = upshift point**.
|
||||
|
||||
### Finishing it (one capture)
|
||||
### ⚠ Direct reference reading contradicts ×0.125
|
||||
|
||||
Log **`0x1A2` alongside `0x0BA`** at steady speed through the gears. **Turbine ÷ output gives each gear ratio directly** — no assumption about shift points — and simultaneously cross-checks the box identity against the 6HP26 table. `0x0AA` for engine rpm makes it airtight. The 2026-07-17 capture was filtered to `0x0BA`/`0x1D2` only, which is the sole reason this is still open.
|
||||
The Launch diagnostic tool reads the EGS output speed directly in rpm (it polls the box, so this is the EGS's own value in engineering units). First simultaneous-ish reading (user, 2026-07-17):
|
||||
|
||||
| Launch output speed | our raw `0x0BA` D3/D4 | implied factor |
|
||||
|---|---|---|
|
||||
| **128 rpm** | **1192** | **0.107** |
|
||||
|
||||
`0x125` would predict 1192 × 0.125 = **149 rpm**; the Launch showed **128**. That's 16 % off — too far to be rounding. **So ×0.125 is probably wrong**, and the true factor is nearer **0.107**. This is exactly the failure mode flagged above: the upshift-schedule test couldn't distinguish 0.107 from 0.125 (both produce a plausible-looking curve), so it never really pinned the factor — it only ruled out raw-as-rpm.
|
||||
|
||||
> [!warning] One eyeballed point, not a calibration
|
||||
> Reading 128 on one tool and 1192 on another at the same instant, on a spinning driveline, is hard to do precisely — the two may be a second apart at slightly different speed. So this **downgrades ×0.125** but doesn't yet promote 0.107. It also can't see an offset (both go through zero, which we know, so a pure factor should hold).
|
||||
|
||||
### Finishing it (now easier — the Launch IS the reference)
|
||||
|
||||
The Launch gives road/output speed directly in rpm, so we no longer need the turbine-ratio inference at all — just **several simultaneous `(raw, Launch-rpm)` pairs across a speed sweep**, then a linear fit. Slope = the factor, intercept should be ~0. Three or four points settle it far better than one.
|
||||
|
||||
Still worth logging **`0x1A2` alongside `0x0BA`** in the same capture: turbine ÷ output cross-checks the box identity against the 6HP26 table independently, and `0x0AA` gives engine rpm. The 2026-07-17 drive capture was filtered to `0x0BA`/`0x1D2` only, which is why the ratio method couldn't run.
|
||||
|
||||
`docs/6HP26.pdf` in the source repo would confirm the ratios from a document rather than recollection. → [[open-questions]] wishlist.
|
||||
|
||||
@@ -149,7 +164,11 @@ The DME publishes its own cruise/ACC regulation state. `0x0AA` `ST_CLCTR_V` (bit
|
||||
|
||||
(source: [[e65-reverse-engineering-repo]]. Our capture reads `0x0` on all 3835 frames — pedal untouched, consistent with a stationary idling test. (verified, 2026-07-17))
|
||||
|
||||
Also available: **`ANG_ACPD`** (`0x0AA` bits 24–31, ×0.39063 %) — accelerator pedal position, `0x00` unpressed → `0xFF` floored. And **`TORQ_DVCH`** (bits 12–23, signed ×0.5 Nm) — driver-demand torque.
|
||||
Also available: **`ANG_ACPD`** (`0x0AA` bits 24–31, ×0.39063 %) — accelerator pedal position, `0x00` unpressed → `0xFF` floored.
|
||||
|
||||
> [!note] Torque decode — user's spreadsheet formula confirmed
|
||||
> **Engine torque is on `0x0A8` (`TORQ_AVL`, available/delivered torque)**, bits 12–23, signed ×0.5 Nm — user-identified. `0x0AA` carries `TORQ_DVCH` (driver *demand*) in the same bit layout, so both read ~27 Nm at idle and are indistinguishable there, but they diverge under load; the delivered value (`0x0A8`) is the one to display.
|
||||
> The user's Excel formula `(D2*256 + D1)/32` is algebraically identical to `bits12-23 × 0.5` — `(D2<<8|D1)/32 == ((D2<<4)|(D1>>4))×0.5`. Verified against the repo's `0x0A8` worked example (`C7 08 03 …` → 24 Nm). **One caveat**: the low nibble of D1 is `ALIV_TORQ_1_DME` (the alive counter) — the repo example literally shows `ALIV`=8 there — not torque, so the full-16-bit read sweeps in ~±0.5 Nm of jitter. The firmware masks it and sign-extends the 12-bit field (so overrun/braking reads negative). ~27–28 Nm at warm idle on our capture. (verified, 2026-07-17)
|
||||
|
||||
### Why a PoC is architecturally plausible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user