Tesla: move steering disengage to generic param (#35097)

* add event

* fix

* for now don't change

* bump to master
pull/35101/head
Shane Smiskol 3 days ago committed by GitHub
parent afcd031cf1
commit 37fa8dc2ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      cereal/log.capnp
  2. 2
      opendbc_repo
  3. 2
      selfdrive/car/car_specific.py
  4. 5
      selfdrive/selfdrived/events.py

@ -48,6 +48,7 @@ struct OnroadEvent @0xc4fa6047f024e718 {
preEnableStandstill @12; # added during pre-enable state with brake
gasPressedOverride @13; # added when user is pressing gas with no disengage on gas
steerOverride @14;
steerDisengage @94; # exits active state
cruiseDisabled @15;
speedTooLow @16;
outOfSpace @17;

@ -1 +1 @@
Subproject commit 0d3b96f1dbb6d6318b123e6c481248685c805f18
Subproject commit 7b87e9069c387ee27187efac45cdff42f3378e20

@ -191,6 +191,8 @@ class CarSpecificEvents:
events.add(EventName.accFaulted)
if CS.steeringPressed:
events.add(EventName.steerOverride)
if CS.steeringDisengage:
events.add(EventName.steerDisengage)
if CS.brakePressed and CS.standstill:
events.add(EventName.preEnableStandstill)
if CS.gasPressed:

@ -670,6 +670,11 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = {
visual_alert=VisualAlert.brakePressed),
},
EventName.steerDisengage: {
ET.USER_DISABLE: EngagementAlert(AudibleAlert.disengage),
ET.NO_ENTRY: NoEntryAlert("Steering Pressed"),
},
EventName.preEnableStandstill: {
ET.PRE_ENABLE: Alert(
"Release Brake to Engage",

Loading…
Cancel
Save