only:nissan TCU torque converter pressure good

This commit is contained in:
rusEFI LLC 2024-06-28 17:25:04 -04:00
parent b082c2fbe6
commit e3263e2d6d
1 changed files with 22 additions and 2 deletions

View File

@ -76,7 +76,12 @@ function onAnythingFromECU(bus, id, dlc, data)
and id ~= 734
then
print('from ECU ' ..id .." " ..arrayToString(data) .." dropped=" ..totalDropped .." replaced " ..totalReplaced)
end txCan(TCU_BUS, id, 0, data) -- relay non-TCU message to TCU
end
if id < 2048 then
txCan(TCU_BUS, id, 0, data) -- relay non-TCU message to TCU
else
print ("Not relaying EXT" .. id)
end
end
function relayFromECU(bus, id, dlc, data)
@ -131,6 +136,20 @@ function onENGINE_3_573(bus, id, dlc, data)
-- txCan(TCU_BUS, ENGINE_3_573, 0, data)
end
ENGINE_4_574 = 574
payloadENGINE_4_574 = {0x00, 0x40, 0xff, 0x45, 0x00, 0xd6, 0x00, 0xa2}
function onENGINE_4_574(bus, id, dlc, data)
-- payloadENGINE_4_574[0] = data[0]
-- payloadENGINE_4_574[1] = data[1]
payloadENGINE_4_574[2] = data[2]
payloadENGINE_4_574[3] = data[3]
payloadENGINE_4_574[4] = data[4]
-- payloadENGINE_4_574[5] = data[5]
payloadENGINE_4_574[6] = data[6]
payloadENGINE_4_574[7] = data[7] -- affects desired torque converter pressure
-- txCan(TCU_BUS, ENGINE_4_574, 0, data)
txCan(TCU_BUS, ENGINE_4_574, 0, payloadENGINE_4_574)
end
payloadENGINE_5 = {0x7d, 0xdb, 0x00, 0xa0, 0x00, 0x02, 0x80, 0xff}
function onENGINE_5(bus, id, dlc, data)
@ -147,10 +166,11 @@ canRxAdd(ECU_BUS, ENGINE_1_505, onENGINE_1_505)
canRxAdd(ECU_BUS, ENGINE_2_561, onENGINE_2_561)
canRxAdd(ECU_BUS, ENGINE_7_563, onENGINE_7_563)
canRxAdd(ECU_BUS, ENGINE_3_573, onENGINE_3_573)
canRxAdd(ECU_BUS, ENGINE_4_574, relayFromECU)
canRxAdd(ECU_BUS, ENGINE_4_574, onENGINE_4_574)
canRxAdd(ECU_BUS, ENGINE_5_1361, onENGINE_5)
canRxAdd(ECU_BUS, ENGINE_6_1408, onENGINE_6)
--canRxAdd(ECU_BUS, ENGINE_4_574, silentDrop)
--canRxAdd(ECU_BUS, ENGINE_5_1361, relayFromECU)
--canRxAdd(ECU_BUS, ENGINE_6_1408, relayFromECU)