added options for unsafe mode
parent
83cf7bf4cb
commit
577f10b1ae
|
@ -90,9 +90,10 @@ bool brake_pressed_prev = false;
|
||||||
|
|
||||||
// This can be set with a USB command
|
// This can be set with a USB command
|
||||||
// It enables features we consider to be unsafe, but understand others may have different opinions
|
// 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 0 on mainline comma.ai openpilot
|
||||||
// It is always off on mainline comma.ai openpilot
|
#define UNSAFE_DISABLE_DISENGAGE_ON_GAS 1
|
||||||
bool unsafe_mode = false;
|
#define UNSAFE_DISABLE_STOCK_AEB 2
|
||||||
|
int unsafe_mode = 0;
|
||||||
|
|
||||||
// time since safety mode has been changed
|
// time since safety mode has been changed
|
||||||
uint32_t safety_mode_cnt = 0U;
|
uint32_t safety_mode_cnt = 0U;
|
||||||
|
|
Loading…
Reference in New Issue