Skip to content

Commit

Permalink
🅱️ Allow Sport Gear Use; Enables Engine Braking on Downhill
Browse files Browse the repository at this point in the history
  • Loading branch information
krkeegan authored and Edison-CBS committed Aug 26, 2023
1 parent 8c35f3f commit 8473b1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
from openpilot.selfdrive.car.interfaces import CarInterfaceBase

EventName = car.CarEvent.EventName
SteerControlType = car.CarParams.SteerControlType

GearShifter = car.CarState.GearShifter

class CarInterface(CarInterfaceBase):
def __init__(self, CP, CarController, CarState):
Expand Down Expand Up @@ -309,7 +308,7 @@ def _update(self, c):
self.override_speed = 0.

# events
events = self.create_common_events(ret)
events = self.create_common_events(ret, extra_gears=[GearShifter.sport])

# Lane Tracing Assist control is unavailable (EPS_STATUS->LTA_STATE=0) until
# the more accurate angle sensor signal is initialized
Expand Down

0 comments on commit 8473b1e

Please sign in to comment.