diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94ea895bd3..0e35aa37f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-ast - id: check-yaml @@ -9,7 +9,7 @@ repos: - id: check-executables-have-shebangs - id: check-shebang-scripts-are-executable - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell exclude: '\.dbc$' @@ -17,11 +17,11 @@ repos: - --check-hidden - --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 + rev: v1.6.1 hooks: - id: mypy - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.291 + rev: v0.1.3 hooks: - id: ruff - repo: https://github.com/MarcoGorelli/cython-lint diff --git a/can/common.pxd b/can/common.pxd index 477f71b2d3..57053b781e 100644 --- a/can/common.pxd +++ b/can/common.pxd @@ -62,7 +62,7 @@ cdef extern from "common_dbc.h": cdef extern from "common.h": - cdef const DBC* dbc_lookup(const string) + cdef const DBC* dbc_lookup(const string) except + cdef cppclass CANParser: bool can_valid diff --git a/gm_global_a_lowspeed.dbc b/gm_global_a_lowspeed.dbc index 9ea4d1da3d..524eeed8be 100644 --- a/gm_global_a_lowspeed.dbc +++ b/gm_global_a_lowspeed.dbc @@ -89,6 +89,12 @@ BO_ 276135936 CruiseButtons: 3 GMLAN BO_ 276127744 CruiseButtons2: 1 GMLAN SG_ LKAGapButton : 1|2@0+ (1,0) [0|2] "" NEO +BO_ 275955897 LeftRadar: 2 GMLAN + SG_ BSM_Indicator_Light : 4|1@0+ (1,0) [0|1] "" XXX + +BO_ 275980379 RightRadar: 2 GMLAN + SG_ BSM_Indicator_Light : 0|1@0+ (1,0) [0|1] "" XXX + BA_DEF_ "UseGMParameterIDs" INT 0 0; @@ -107,4 +113,6 @@ VAL_ 271368192 GearShifter 3 "Park" 0 "Drive/Low" ; VAL_ 271360000 CruiseControlActive 1 "Active" 0 "Inactive" ; VAL_ 276135936 CruiseButtons 6 "Cancel" 5 "Main" 3 "Set" 2 "Resume" 1 "None" ; VAL_ 276127744 LKAGapButton 2 "???" 1 "??" 0 "None" ; +VAL_ 275955897 BSM_Indicator_Light 0 "Disabled" 1 "Enabled"; +VAL_ 275980379 BSM_Indicator_Right 0 "Disabled" 1 "Enabled";