Skip to content

Commit

Permalink
Try 3-finger tap for mads
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeno committed Aug 9, 2024
1 parent daab1e4 commit 423082e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendbc_repo
2 changes: 1 addition & 1 deletion panda
Submodule panda updated from 5fabf5 to f6cc53
1 change: 1 addition & 0 deletions selfdrive/car/tesla/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def get_adas_can_parser(CP): # Vehicle Can on Model 3
("SCCM_steeringAngleSensor", 100),
("DAS_bodyControls", 2),
("ID3F5VCFRONT_lighting", 10),
("UI_status2", 100),
]

return CANParser(DBC[CP.carFingerprint]["pt"], messages, CANBUS.vehicle)
2 changes: 1 addition & 1 deletion selfdrive/car/tesla/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CANBUS:
Button(car.CarState.ButtonEvent.Type.decelCruise, "VCLEFT_switchStatus", "VCLEFT_swcRightScrollTicks", list(range(-9, 0)), None),
Button(car.CarState.ButtonEvent.Type.cancel, "SCCM_rightStalk", "SCCM_rightStalkStatus", [1, 2], None),
Button(car.CarState.ButtonEvent.Type.resumeCruise, "SCCM_rightStalk", "SCCM_rightStalkStatus", [3, 4], None),
Button(car.CarState.ButtonEvent.Type.altButton2, "VCLEFT_switchStatus", "VCLEFT_swcRightDoublePress", [1], 1), # Note that mux needs to be handled in carState
Button(car.CarState.ButtonEvent.Type.altButton2, "UI_status2", "UI_activeTouchPoints", [3], None), # 3-finger touch on center display for MADS
Button(car.CarState.ButtonEvent.Type.gapAdjustCruise, "VCLEFT_switchStatus", "VCLEFT_swcRightTiltRight", [2], 1), # TODO: directional gap adjustment
]

Expand Down

0 comments on commit 423082e

Please sign in to comment.