mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-07 17:27:01 +08:00
VW MQB: Support for preempted HCA state (#32298)
* bump opendbc * VW MQB: Support for preempted HCA state
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user