Driveline screen: drop turbine tile, show output shaft as provisional rpm
Turbine speed removed from the display - it's an engagement diagnostic, not a driver number, and the Launch now gives output speed directly so it's no longer needed for the ratio-calibration method either. Still decoded in the driver. Its screen slot now shows accelerator pedal %. Output shaft now displays approximate rpm instead of raw counts, via a PROVISIONAL factor from the single Launch reference (128 rpm / 1192 raw = ~0.107, through a known zero). The tile is labelled "OUTPUT (~rpm)" - the "~" keeps an unlocked scaling from reading as exact. Replace the factor once a multi-point Launch sweep gives a real fit. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -192,6 +192,18 @@ typedef struct __attribute__((packed)) {
|
||||
#define CAN_BYTE_OUTPUT_SHAFT_L 3
|
||||
#define CAN_BYTE_OUTPUT_SHAFT_H 4
|
||||
|
||||
// PROVISIONAL output-shaft factor, from a SINGLE Launch reference reading
|
||||
// (128 rpm at raw 1192, 2026-07-17) taken through a known zero. Good enough to
|
||||
// put an approximate rpm on the display (±~10%), NOT good enough to trust for
|
||||
// anything computed. Replace once a multi-point Launch sweep gives a real fit.
|
||||
// rpm ~= raw * 1074 / 10000
|
||||
#define OUTPUT_SHAFT_RPM_NUM 1074
|
||||
#define OUTPUT_SHAFT_RPM_DEN 10000
|
||||
|
||||
static inline uint16_t can_output_shaft_rpm(uint16_t raw) {
|
||||
return (uint16_t)(((uint32_t)raw * OUTPUT_SHAFT_RPM_NUM) / OUTPUT_SHAFT_RPM_DEN);
|
||||
}
|
||||
|
||||
// --- 0x1A2 turbine speed (EGS, DLC 4, 20 ms) -------------------------------
|
||||
// Gearbox INPUT speed. Physically proves engagement: free-spins at ~engine
|
||||
// speed in P/N, collapses to ~0 when the box engages against a held output.
|
||||
|
||||
Reference in New Issue
Block a user