mirror of https://github.com/rusefi/rusefi-1.git
Gather Nissan CAN data #2278
This commit is contained in:
parent
f0939aa752
commit
4f0210fcda
|
@ -79,6 +79,8 @@ static time_msecs_t mph_ctr;
|
||||||
// 19500 value would be 100 kph
|
// 19500 value would be 100 kph
|
||||||
#define NISSAN_WHEEL_SPEED 0x285
|
#define NISSAN_WHEEL_SPEED 0x285
|
||||||
|
|
||||||
|
#define NISSAN_CLT_551 0x551
|
||||||
|
|
||||||
static uint8_t rpmcounter;
|
static uint8_t rpmcounter;
|
||||||
static uint8_t seatbeltcnt;
|
static uint8_t seatbeltcnt;
|
||||||
static uint8_t abscounter = 0xF0;
|
static uint8_t abscounter = 0xF0;
|
||||||
|
@ -316,6 +318,13 @@ void canDashboardNissanVQ(CanCycle cycle) {
|
||||||
msg[3] = rpm8 & 0xFF;
|
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);
|
CanTxMessage msg(NISSAN_RPM_CLT, 8);
|
||||||
|
|
Loading…
Reference in New Issue