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:
2026-07-17 17:45:00 +02:00
parent 0b31c6f5f7
commit e10e03eb90
11 changed files with 99 additions and 427485 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ The research frontier. Answering any of these should trigger updates across the
## Active
8. **What is the scaling of `0x0BA` D3/D4 (output shaft speed)?** *Narrowed 2026-07-17.* The **identification is now verified** (rises monotonically 1st→6th under drive, zero whenever the output is held) and **×0.125 is a strong hypothesis** — it implies a coherent 901→1872 rpm upshift schedule across five independent 6HP26 ratios, where raw-as-rpm would imply 7,200–15,000 rpm against a ~4,500 redline. **Remaining assumption:** that each gear's max output is its upshift point. **One capture closes this** — log `0x1A2` alongside `0x0BA` at steady speed through the gears; turbine ÷ output gives each ratio directly with no shift-point assumption. The 2026-07-17 capture was filtered to `0x0BA`/`0x1D2` only, which is the sole reason it's still open. Still the project's only road-speed signal (no DSC on this bus). → [[driveline-speed-signals]]
8. **What is the scaling of `0x0BA` D3/D4 (output shaft speed)?** *Identification verified; factor still open and revised 2026-07-17.* The field is confirmed output shaft speed (rises monotonically 1st→6th, zero whenever the output is held). The factor is **not** settled: the upshift-schedule test suggested ×0.125, but a **direct Launch reference (128 rpm @ raw 1192) contradicts it** — that implies **~0.107** (0.125 would predict 149 rpm). One eyeballed cross-tool point isn't a calibration, so nothing is adopted yet. **Closing it is now easy**: the Launch reads output speed directly in rpm, so log several simultaneous `(raw, Launch-rpm)` pairs across a speed sweep and fit a line (slope = factor, intercept ≈ 0). Log `0x1A2` too for an independent box-identity cross-check. Still the project's only road-speed signal (no DSC on this bus). → [[driveline-speed-signals]]
11. **Was the BMW transfer case retained, and what's downstream?** The 6HP26**X** measures its output shaft *upstream* of the transfer case, so raw counts → km/h depends on the path: BMW case retained (rear output ~1:1, math unaffected) / deleted and coupled straight to the Patrol driveline (also fine) / a Patrol transfer case in the path (its ratio enters the calculation **and changes with high/low range**, making road speed range-dependent). → [[nissan-patrol-swap]]