Skip to content

Commit 2ce6536

Browse files
committed
comments on unsafe flags
1 parent d880134 commit 2ce6536

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

board/safety_declarations.h

+9
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,18 @@ bool brake_pressed_prev = false;
9191
// This can be set with a USB command
9292
// It enables features we consider to be unsafe, but understand others may have different opinions
9393
// It is always 0 on mainline comma.ai openpilot
94+
95+
// If using this flag, be very careful about what happens if your fork
96+
// wants to brake while the user is pressing the gas. Tesla is careful with this.
9497
#define UNSAFE_DISABLE_DISENGAGE_ON_GAS 1
98+
99+
// If using this flag, make sure to communicate to your users that a stock safety feature is now disabled
95100
#define UNSAFE_DISABLE_STOCK_AEB 2
101+
102+
// If using this flag, be aware that harder braking is more likely to lead to rear endings, and that alone
103+
// this flag doesn't make braking ISO26262 compliant because there's also an unaccounted for time element.
96104
#define UNSAFE_RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX 8
105+
97106
int unsafe_mode = 0;
98107

99108
// time since safety mode has been changed

0 commit comments

Comments
 (0)