From 8e176e068e01cd14b991856dce4bbd962ef23123 Mon Sep 17 00:00:00 2001 From: mawei Date: Thu, 8 Oct 2026 18:43:02 +0800 Subject: [PATCH] volkswagen: add DISABLE_RADAR flags --- opendbc_repo/opendbc/car/volkswagen/values.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opendbc_repo/opendbc/car/volkswagen/values.py b/opendbc_repo/opendbc/car/volkswagen/values.py index 22b8c5bc2..6134441f6 100644 --- a/opendbc_repo/opendbc/car/volkswagen/values.py +++ b/opendbc_repo/opendbc/car/volkswagen/values.py @@ -16,6 +16,8 @@ TransmissionType = structs.CarParams.TransmissionType GearShifter = structs.CarState.GearShifter Button = namedtuple('Button', ['event_type', 'can_addr', 'can_msg', 'values']) +RADAR_DISABLE_STATE: dict[str, bool] = {"error": False} + class CanBus(CanBusBase): def __init__(self, CP=None, fingerprint=None) -> None: @@ -215,6 +217,7 @@ class WMI(StrEnum): class VolkswagenSafetyFlags(IntFlag): LONG_CONTROL = 1 MEB_ALT_CRC = 2 + DISABLE_RADAR = 8 class VolkswagenFlags(IntFlag): @@ -231,6 +234,7 @@ class VolkswagenFlags(IntFlag): MEB_GEN2 = 128 MQB_EVO = 256 MQB_EVO_GEN2 = 8192 + DISABLE_RADAR = 2 ** 12 CLUSTER_NO_TA_LANES = 65536