diff --git a/board/safety_declarations.h b/board/safety_declarations.h index 5c3eebea..dbe1a707 100644 --- a/board/safety_declarations.h +++ b/board/safety_declarations.h @@ -263,6 +263,9 @@ struct sample_t angle_meas; // last 6 steer angles/curvatures // See ISO 15622:2018 for more information. #define ALT_EXP_RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX 8 +// This flag allows AEB to be commanded from openpilot. +#define ALT_EXP_ALLOW_AEB 16 + int alternative_experience = 0; // time since safety mode has been changed diff --git a/python/__init__.py b/python/__init__.py index 1c92c964..77b83b83 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -111,6 +111,7 @@ class ALTERNATIVE_EXPERIENCE: DISABLE_DISENGAGE_ON_GAS = 1 DISABLE_STOCK_AEB = 2 RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX = 8 + ALLOW_AEB = 16 class Panda: