Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nissan: allow B drive mode for Nissan Leaf #29228

Merged
merged 6 commits into from Aug 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion selfdrive/car/nissan/interface.py
Expand Up @@ -47,7 +47,7 @@ def _update(self, c):
be.type = car.CarState.ButtonEvent.Type.accelCruise
buttonEvents.append(be)

events = self.create_common_events(ret)
events = self.create_common_events(ret, extra_gears=[car.CarState.GearShifter.brake])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked and this mode is only in the leaf DBC, so we can be sure that it will never occur on other cars


if self.CS.lkas_enabled:
events.add(car.CarEvent.EventName.invalidLkasSetting)
Expand Down