Engine data screen: live rail, boost, charge-air temp, battery from the DDE

New screen (Engine data button on Driveline) polls the DDE with the
Launch's KWP `2C 10 <id>` reads: 00DF rail (bar = raw x 0.03, verified),
0091 boost (mbar = raw / 8), 16A8 charge-air temp, 0093 battery - the last
three provisional (one engine-off point each), tagged on screen with the
raw value shown for calibration.

DiagProbe live mode: `2C 10 15 E0` once, then the four reads in turn, one
in flight, ~100 ms apart, quiet on the console, paused by the foreign-tester
guard, stops 1.5 s after the screen stops asking. 2C stays forbidden from
the console. CANDriver::transmit gains an echo flag (live frames echoed only
with CANRAW on). Wiki: the three CANNY captures ingested, identifier table
and the no-password decision recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 19:48:00 +02:00
parent 40a21557f0
commit a28cbada59
17 changed files with 40926 additions and 13 deletions
+5 -4
View File
@@ -147,12 +147,13 @@ namespace CANDriver {
/**
* Transmit ONE standard (11-bit) frame, single-shot (no automatic
* retransmission if nobody ACKs). The only write path onto the vehicle
* bus; reserved for DiagProbe's on-demand diagnostic requests. Echoes the
* frame on the console as a "CANTX," line (same shape as CANRAW) so
* captures hold both halves of an exchange.
* bus; reserved for DiagProbe (console requests + the Engine data screen's
* live poll). Echoes the frame on the console as a "CANTX," line (same
* shape as CANRAW) so captures hold both halves of an exchange; the live
* poll passes echo=false unless CANRAW logging is on (10 frames/s).
* @return true if the frame was queued (delivery is reported via stats)
*/
bool transmit(uint32_t id, const uint8_t* data, uint8_t len);
bool transmit(uint32_t id, const uint8_t* data, uint8_t len, bool echo = true);
/**
* Enable/disable raw frame logging (candump-style capture of EVERY frame).