From 515fbc4ce54c371e345a5cfbda5539f9479dbbf1 Mon Sep 17 00:00:00 2001 From: elkoled Date: Mon, 2 Feb 2026 15:29:40 -0800 Subject: [PATCH] clarification for LKAS blocking engagement --- opendbc/car/mazda/carstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendbc/car/mazda/carstate.py b/opendbc/car/mazda/carstate.py index 34919e04dd6..d64686f2bd7 100644 --- a/opendbc/car/mazda/carstate.py +++ b/opendbc/car/mazda/carstate.py @@ -87,7 +87,7 @@ def update(self, can_parsers) -> structs.CarState: ret.cruiseState.speed = cp.vl["CRZ_EVENTS"]["CRZ_SPEED"] * CV.KPH_TO_MS # stock lkas should be on - # TODO: is this needed? + # LKAS requires detected lane lines; block engagement if none are present ret.invalidLkasSetting = cp_cam.vl["CAM_LANEINFO"]["LANE_LINES"] == 0 if ret.cruiseState.enabled: