From 81b0f378edff660dd84d4282126565299cf29b9b Mon Sep 17 00:00:00 2001 From: vanillagorillaa Date: Sun, 26 Dec 2021 20:27:12 +0000 Subject: [PATCH] need to send val 12 too? --- opendbc | 2 +- selfdrive/car/honda/hondacan.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/opendbc b/opendbc index 4082d8260c..77fe988271 160000 --- a/opendbc +++ b/opendbc @@ -1 +1 @@ -Subproject commit 4082d8260c3337e3e116b8f832c19b7d3371d6b2 +Subproject commit 77fe9882714b2a64404984add9b1de12e1abcabe diff --git a/selfdrive/car/honda/hondacan.py b/selfdrive/car/honda/hondacan.py index 7fcafe67f8..7687fad70f 100644 --- a/selfdrive/car/honda/hondacan.py +++ b/selfdrive/car/honda/hondacan.py @@ -172,3 +172,11 @@ def spam_buttons_command(packer, button_val, idx, car_fingerprint): } bus = get_pt_bus(car_fingerprint) return packer.make_can_msg("SCM_BUTTONS", bus, values, idx) + +def create_scm_command(packer, car_fingerprint, idx): + # non-active params + values = { + "SET_TO_X12": 0x12, + } + bus = get_pt_bus(car_fingerprint) + return packer.make_can_msg("SCM_BUTTONS", bus, values, idx)