From 700fa8c13dc96875ba9abf5214ca3fe3d80241a8 Mon Sep 17 00:00:00 2001 From: Candy0707 Date: Wed, 20 Aug 2025 00:27:20 +0800 Subject: [PATCH] Bug Fix --- selfdrive/controls/controlsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index ca656a9166..e750cb55cd 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -160,8 +160,8 @@ class Controls: hudControl.leadDistanceBars = self.sm['selfdriveState'].personality.raw + 1 hudControl.visualAlert = self.sm['selfdriveState'].alertHudVisual - hudControl.rightLaneVisible = 1 if(model_v2.LaneLines[2] and model_v2.LaneLineProbs[2] > 0.5) else 0 - hudControl.leftLaneVisible = 1 if(model_v2.LaneLines[1] and model_v2.LaneLineProbs[1] > 0.5) else 0 + hudControl.rightLaneVisible = 1 if(model_v2.laneLines[2] and model_v2.laneLineProbs[2] > 0.5) else 0 + hudControl.leftLaneVisible = 1 if(model_v2.laneLines[1] and model_v2.laneLineProbs[1] > 0.5) else 0 if self.sm.valid['driverAssistance']: hudControl.leftLaneDepart = self.sm['driverAssistance'].leftLaneDeparture hudControl.rightLaneDepart = self.sm['driverAssistance'].rightLaneDeparture