mirror of https://github.com/commaai/openpilot.git
VW MQB: Support for preempted HCA state (#32298)
* bump opendbc * VW MQB: Support for preempted HCA state
This commit is contained in:
parent
e548742701
commit
f770f55a4e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue