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
Conversation
…youtu.be/vaMbtAh_0cY&t=0s"), Add Youtube video 2019 Leaf
cd /data && rm -rf openpilot && git clone --recursive https://github.com/cellfreak/openpilot -b master && sudo reboot Ran on my Comma Three with no issues. 2019 Nissan Leaf SL Plus |
B mode: ‘B mode’ enhances the driving range and improves regenerative braking efficiency. |
@@ -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]) |
There was a problem hiding this comment.
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
Add B ( Battery save ) drive mode for Nissan Leaf - selfdrive/car/nissan/interface.py
Line 50 - events = self.create_common_events(ret, extra_gears=[car.CarState.GearShifter.brake])
Road test successful - https://connect.comma.ai/0b17985326a570c4/1691100300431/1691100676848