mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-02-18 13:03:52 +08:00
# Conflicts: # SConstruct # opendbc/car/tests/routes.py # opendbc/car/toyota/carcontroller.py # opendbc/car/toyota/carstate.py # opendbc/safety/lateral.h # opendbc/safety/modes/subaru.h # opendbc/safety/modes/subaru_preglobal.h # opendbc/safety/modes/toyota.h # opendbc/safety/tests/common.py # opendbc/safety/tests/libsafety/safety_helpers.h # opendbc/safety/tests/libsafety/safety_helpers.py # opendbc/safety/tests/misra/main.c # opendbc/safety/tests/test_chrysler.py # opendbc/safety/tests/test_honda.py # opendbc/safety/tests/test_hyundai.py # opendbc/safety/tests/test_hyundai_canfd.py # opendbc/safety/tests/test_toyota.py
16 lines
407 B
Python
16 lines
407 B
Python
# constants from can.h
|
|
DLC_TO_LEN = [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 20, 24, 32, 48, 64]
|
|
LEN_TO_DLC = {length: dlc for (dlc, length) in enumerate(DLC_TO_LEN)}
|
|
|
|
|
|
class ALTERNATIVE_EXPERIENCE:
|
|
DEFAULT = 0
|
|
DISABLE_STOCK_AEB = 2
|
|
RAISE_LONGITUDINAL_LIMITS_TO_ISO_MAX = 8
|
|
ALLOW_AEB = 16
|
|
|
|
# sunnypilot
|
|
ENABLE_MADS = 1024
|
|
MADS_DISENGAGE_LATERAL_ON_BRAKE = 2048
|
|
MADS_PAUSE_LATERAL_ON_BRAKE = 4096
|