IQ.Pilot Release Commit @ 322eda2
This commit is contained in:
@@ -200,7 +200,7 @@ class TrainingGuideDMTutorial(Widget):
|
||||
looking_center = False
|
||||
|
||||
# stay at 100% once reached
|
||||
if (dm_state.faceDetected and looking_center) or self._progress.x > 0.99:
|
||||
if (dm_state.visionPolicyState.faceDetected and looking_center) or self._progress.x > 0.99:
|
||||
slow = self._progress.x < 0.25
|
||||
duration = self.PROGRESS_DURATION * 2 if slow else self.PROGRESS_DURATION
|
||||
self._progress.x += 1.0 / (duration * gui_app.target_fps)
|
||||
|
||||
@@ -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