Skip to content

Commit

Permalink
added options for unsafe mode
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Mar 31, 2020
1 parent 83cf7bf commit 577f10b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions board/safety_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 577f10b

Please sign in to comment.