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 Jun 17, 2024
1 parent dc365ce commit 9068f43
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 @@
ButtonType = car.CarState.ButtonEvent.Type
EventName = car.CarEvent.EventName
SteerControlType = car.CarParams.SteerControlType
GearShifter = car.CarState.GearShifter


class CarInterface(CarInterfaceBase):
Expand Down Expand Up @@ -176,7 +177,7 @@ def _update(self, c):
ret.buttonEvents = create_button_events(self.CS.distance_button, self.CS.prev_distance_button, {1: ButtonType.gapAdjustCruise})

# 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 9068f43

Please sign in to comment.