Skip to content

Commit

Permalink
rename altButton1 to lkas
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Oct 19, 2024
1 parent 76afb6f commit 5d258ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opendbc/car/car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ struct CarState {
accelCruise @3;
decelCruise @4;
cancel @5;
altButton1 @6;
lkas @6;
altButton2 @7;
mainCruise @8;
setCruise @9;
Expand Down
2 changes: 1 addition & 1 deletion opendbc/car/honda/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5d258ce

Please sign in to comment.