From 4f0210fcda32026355b4c5f14e340248a2b3e9ac Mon Sep 17 00:00:00 2001 From: Andrey Date: Tue, 6 Jul 2021 23:12:03 -0400 Subject: [PATCH] Gather Nissan CAN data #2278 --- firmware/controllers/can/can_dash.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/controllers/can/can_dash.cpp b/firmware/controllers/can/can_dash.cpp index 669a5f95c0..e945d2777d 100644 --- a/firmware/controllers/can/can_dash.cpp +++ b/firmware/controllers/can/can_dash.cpp @@ -79,6 +79,8 @@ static time_msecs_t mph_ctr; // 19500 value would be 100 kph #define NISSAN_WHEEL_SPEED 0x285 +#define NISSAN_CLT_551 0x551 + static uint8_t rpmcounter; static uint8_t seatbeltcnt; static uint8_t abscounter = 0xF0; @@ -316,6 +318,13 @@ void canDashboardNissanVQ(CanCycle cycle) { msg[3] = rpm8 & 0xFF; } + { + CanTxMessage msg(NISSAN_CLT_551, 8); + + int clt = 40; // todo read sensor + msg[0] = clt + 45; + } + { CanTxMessage msg(NISSAN_RPM_CLT, 8);