IQ.Pilot Prebuilt Release @ 27f668a
This commit is contained in:
19
artifacts/package_runtime/iqdbc/lvbs/car/honda/aol.py
Normal file
19
artifacts/package_runtime/iqdbc/lvbs/car/honda/aol.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""
|
||||
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
|
||||
"""
|
||||
|
||||
from iqdbc.car import structs
|
||||
from iqdbc.car.honda.values import HONDA_BOSCH_RADARLESS
|
||||
|
||||
|
||||
class AolCarController:
|
||||
def __init__(self):
|
||||
self.dashed_lanes = False
|
||||
|
||||
def update(self, CP: structs.CarParams, CC: structs.CarControl, CC_IQ: structs.IQCarControl) -> None:
|
||||
enable_aol = CC_IQ.aol.available
|
||||
|
||||
if enable_aol:
|
||||
self.dashed_lanes = CC_IQ.aol.enabled and not CC.latActive
|
||||
else:
|
||||
self.dashed_lanes = CC.hudControl.lanesVisible if CP.carFingerprint in HONDA_BOSCH_RADARLESS else False
|
||||
Reference in New Issue
Block a user