mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-14 00:22:08 +08:00
sunnyParams
This commit is contained in:
+1
-1
Submodule opendbc_repo updated: efd5f88dff...71e45f46b2
@@ -1,6 +1,7 @@
|
||||
from cereal import car, log, custom
|
||||
|
||||
from opendbc.car.hyundai.values import HyundaiFlags, HyundaiFlagsSP
|
||||
from opendbc.car.hyundai.values import HyundaiFlags
|
||||
from opendbc.sunnypilot.car.hyundai.values import HyundaiFlagsSP
|
||||
|
||||
from openpilot.sunnypilot.mads.helpers import MadsParams
|
||||
from openpilot.sunnypilot.mads.state import StateMachine
|
||||
@@ -23,7 +24,7 @@ class ModularAssistiveDrivingSystem:
|
||||
self.state_machine = StateMachine(self)
|
||||
|
||||
if self.selfdrive.CP.carName == "hyundai":
|
||||
if (self.selfdrive.CP.safetyConfigs[-1].spFlags & HyundaiFlagsSP.HAS_LFA_BUTTON) or \
|
||||
if (self.selfdrive.CP.sunnyParams.flags & HyundaiFlagsSP.HAS_LFA_BUTTON) or \
|
||||
(self.selfdrive.CP.flags & HyundaiFlags.CANFD):
|
||||
self.allow_always = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user