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 committed Nov 21, 2023
1 parent a55d14d commit bca1c48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/car/toyota/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

EventName = car.CarEvent.EventName
SteerControlType = car.CarParams.SteerControlType
GearShifter = car.CarState.GearShifter


class CarInterface(CarInterfaceBase):
Expand Down Expand Up @@ -286,7 +287,7 @@ def _update(self, c):
ret = self.CS.update(self.cp, self.cp_cam)

# 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 bca1c48

Please sign in to comment.