Update interface.py

This commit is contained in:
马威 2024-11-22 23:00:44 +08:00 committed by GitHub
parent fb6ad760cc
commit 26581087e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class CarInterface(CarInterfaceBase):
else: else:
# Set global MQB parameters # Set global MQB parameters
ret.safetyConfigs = [get_safety_config(structs.CarParams.SafetyModel.volkswagen)] ret.safetyConfigs = [get_safety_config(car.CarParams.SafetyModel.noOutput),get_safety_config(structs.CarParams.SafetyModel.volkswagen)]
ret.enableBsm = 0x30F in fingerprint[0] # SWA_01 ret.enableBsm = 0x30F in fingerprint[0] # SWA_01
if 0xAD in fingerprint[0] or docs: # Getriebe_11 if 0xAD in fingerprint[0] or docs: # Getriebe_11
@ -48,7 +48,7 @@ class CarInterface(CarInterfaceBase):
if any(msg in fingerprint[1] for msg in (0x40, 0x86, 0xB2, 0xFD)): # Airbag_01, LWI_01, ESP_19, ESP_21 if any(msg in fingerprint[1] for msg in (0x40, 0x86, 0xB2, 0xFD)): # Airbag_01, LWI_01, ESP_19, ESP_21
ret.networkLocation = NetworkLocation.gateway ret.networkLocation = NetworkLocation.gateway
else: else:
ret.networkLocation = NetworkLocation.fwdCamera ret.networkLocation = NetworkLocation.gatewa
if 0x126 in fingerprint[2]: # HCA_01 if 0x126 in fingerprint[2]: # HCA_01
ret.flags |= VolkswagenFlags.STOCK_HCA_PRESENT.value ret.flags |= VolkswagenFlags.STOCK_HCA_PRESENT.value