IQ.Pilot Release Commit @ 322eda2
This commit is contained in:
@@ -102,7 +102,7 @@ class VehicleLayoutMici(NavScroller):
|
||||
|
||||
def _vw_flags(self):
|
||||
try:
|
||||
from opendbc.car.volkswagen.values import CAR
|
||||
from iqdbc.car.volkswagen.values import CAR
|
||||
bundle = ui_state.params.get("CarPlatformBundle")
|
||||
if bundle and (platform := bundle.get("platform")):
|
||||
return CAR[platform].config.flags
|
||||
@@ -113,16 +113,16 @@ class VehicleLayoutMici(NavScroller):
|
||||
return 0
|
||||
|
||||
def _is_vw_pq(self) -> bool:
|
||||
from opendbc.car.volkswagen.values import VolkswagenFlags
|
||||
from iqdbc.car.volkswagen.values import VolkswagenFlags
|
||||
return bool(self._vw_flags() & VolkswagenFlags.PQ)
|
||||
|
||||
def _is_vw_mqb(self) -> bool:
|
||||
from opendbc.car.volkswagen.values import VolkswagenFlags
|
||||
from iqdbc.car.volkswagen.values import VolkswagenFlags
|
||||
flags = self._vw_flags()
|
||||
return not bool(flags & (VolkswagenFlags.PQ | VolkswagenFlags.MLB | VolkswagenFlags.MEB | VolkswagenFlags.MEB_GEN2 | VolkswagenFlags.MQB_EVO))
|
||||
|
||||
def _supports_vw_lateral_when_faulted(self) -> bool:
|
||||
from opendbc.car.volkswagen.values import VolkswagenFlags
|
||||
from iqdbc.car.volkswagen.values import VolkswagenFlags
|
||||
# PQ, MEB, MQB_EVO and base MQB all implement cruiseFaultLateralMode in carstate.py.
|
||||
# MLB does not.
|
||||
return not bool(self._vw_flags() & VolkswagenFlags.MLB)
|
||||
|
||||
Reference in New Issue
Block a user