Update 2018 Leaf FPv2

pull/22655/head
Martin Lillepuu 4 years ago committed by robin-reckmann
parent 8e92279322
commit e4bd34648d
  1. 8
      selfdrive/car/fw_versions.py
  2. 6
      selfdrive/car/nissan/values.py

@ -84,6 +84,7 @@ NISSAN_RX_OFFSET1 = 0x20
NISSAN_RX_OFFSET2 = 0x2
NISSAN_RX_OFFSET3 = 0x3
NISSAN_RX_OFFSET4 = 0x37
NISSAN_RX_OFFSET5 = 0x8
# brand, request, response, response offset
REQUESTS = [
@ -171,7 +172,12 @@ REQUESTS = [
[NISSAN_DIAGNOSTIC_RESPONSE, NISSAN_VERSION_RESPONSE],
NISSAN_RX_OFFSET4,
),
(
"nissan",
[NISSAN_DIAGNOSTIC_REQUEST, NISSAN_VERSION_REQUEST],
[NISSAN_DIAGNOSTIC_RESPONSE, NISSAN_VERSION_RESPONSE],
NISSAN_RX_OFFSET5,
),
]

@ -68,9 +68,9 @@ FW_VERSIONS = {
#(Ecu.fwdCamera, 0x787, None): [
# b'',
#],
#(Ecu.engine, 0x797, None): [
# b'',
#],
(Ecu.engine, 0x797, None): [
b'5SH4A\x03AB\x075SH4APSMT04\x00\x00\x00\x80',
],
(Ecu.transmission, 0x79d, None): [
b'5SA2B\x04AB\x071\x03\x80\x12P\x02\x03D\x00\x02\x06\x00\x00\x00\x80',
],

Loading…
Cancel
Save