From 577f10b1aec356902e81a911bfcc2ba1ccfb87ac Mon Sep 17 00:00:00 2001 From: George Hotz Date: Tue, 31 Mar 2020 10:21:00 -0700 Subject: [PATCH] added options for unsafe mode --- board/safety_declarations.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/board/safety_declarations.h b/board/safety_declarations.h index 7163c8e52dd6c6..8d00a5a225bab7 100644 --- a/board/safety_declarations.h +++ b/board/safety_declarations.h @@ -90,9 +90,10 @@ bool brake_pressed_prev = false; // This can be set with a USB command // It enables features we consider to be unsafe, but understand others may have different opinions -// Examples of such features include no gas disengage and disabling stock AEB -// It is always off on mainline comma.ai openpilot -bool unsafe_mode = false; +// It is always 0 on mainline comma.ai openpilot +#define UNSAFE_DISABLE_DISENGAGE_ON_GAS 1 +#define UNSAFE_DISABLE_STOCK_AEB 2 +int unsafe_mode = 0; // time since safety mode has been changed uint32_t safety_mode_cnt = 0U;