Skip to content

Commit d018fd5

Browse files
AEB prep (commaai#33515)
* init aeb * remove that for now
1 parent 47409ab commit d018fd5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cereal/car.capnp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ struct OnroadEvent @0x9b1657f34caf3ad3 {
115115
actuatorsApiUnavailable @120;
116116
espActive @121;
117117
personalityChanged @122;
118+
aeb @123;
118119

119120
radarCanErrorDEPRECATED @15;
120121
communityFeatureDisallowedDEPRECATED @62;
@@ -371,6 +372,7 @@ struct CarControl {
371372
pid @1;
372373
stopping @2;
373374
starting @3;
375+
emergencyBraking @4;
374376
}
375377
}
376378

selfdrive/selfdrived/events.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,15 @@ def personality_changed_alert(CP: car.CarParams, CS: car.CarState, sm: messaging
388388
priority=Priority.LOWEST),
389389
},
390390

391+
EventName.aeb: {
392+
ET.PERMANENT: Alert(
393+
"BRAKE!",
394+
"Emergency Braking: Risk of Collision",
395+
AlertStatus.critical, AlertSize.full,
396+
Priority.HIGHEST, VisualAlert.fcw, AudibleAlert.none, 2.),
397+
ET.NO_ENTRY: NoEntryAlert("AEB: Risk of Collision"),
398+
},
399+
391400
EventName.stockAeb: {
392401
ET.PERMANENT: Alert(
393402
"BRAKE!",

0 commit comments

Comments
 (0)