From 5d258ce7c482f1c73560f4ae762badb4eba44ca5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Fri, 18 Oct 2024 19:51:45 -0700 Subject: [PATCH] rename altButton1 to lkas --- opendbc/car/car.capnp | 2 +- opendbc/car/honda/carstate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opendbc/car/car.capnp b/opendbc/car/car.capnp index 49f82b6dd3..f2a8974d15 100644 --- a/opendbc/car/car.capnp +++ b/opendbc/car/car.capnp @@ -278,7 +278,7 @@ struct CarState { accelCruise @3; decelCruise @4; cancel @5; - altButton1 @6; + lkas @6; altButton2 @7; mainCruise @8; setCruise @9; diff --git a/opendbc/car/honda/carstate.py b/opendbc/car/honda/carstate.py index 76e653314d..91409d7f45 100644 --- a/opendbc/car/honda/carstate.py +++ b/opendbc/car/honda/carstate.py @@ -16,7 +16,7 @@ BUTTONS_DICT = {CruiseButtons.RES_ACCEL: ButtonType.accelCruise, CruiseButtons.DECEL_SET: ButtonType.decelCruise, CruiseButtons.MAIN: ButtonType.mainCruise, CruiseButtons.CANCEL: ButtonType.cancel} -SETTINGS_BUTTONS_DICT = {CruiseSettings.DISTANCE: ButtonType.gapAdjustCruise, CruiseSettings.LKAS: ButtonType.altButton1} +SETTINGS_BUTTONS_DICT = {CruiseSettings.DISTANCE: ButtonType.gapAdjustCruise, CruiseSettings.LKAS: ButtonType.lkas} def get_can_messages(CP, gearbox_msg):