VW MQB: Support for preempted HCA state (#32298)

* bump opendbc

* VW MQB: Support for preempted HCA state
This commit is contained in:
Jason Young 2024-05-13 01:06:03 -04:00 committed by GitHub
parent e548742701
commit f770f55a4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class CarState(CarStateBase):
# DISABLED means the EPS hasn't been configured to support Lane Assist
self.eps_init_complete = self.eps_init_complete or (hca_status in ("DISABLED", "READY", "ACTIVE") or self.frame > 600)
perm_fault = hca_status == "DISABLED" or (self.eps_init_complete and hca_status in ("INITIALIZING", "FAULT"))
temp_fault = hca_status == "REJECTED" or not self.eps_init_complete
temp_fault = hca_status in ("REJECTED", "PREEMPTED") or not self.eps_init_complete
return temp_fault, perm_fault
@staticmethod