mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 14:42:08 +08:00
always show lane lines on HUD (#22693)
* always show lane lines on HUD * update refs old-commit-hash: f2b48a1803eed1512962ee80e0f4c9718f40d44b
This commit is contained in:
@@ -565,10 +565,8 @@ class Controls:
|
||||
CC.hudControl.lanesVisible = self.enabled
|
||||
CC.hudControl.leadVisible = self.sm['longitudinalPlan'].hasLead
|
||||
|
||||
right_lane_visible = self.sm['lateralPlan'].rProb > 0.5
|
||||
left_lane_visible = self.sm['lateralPlan'].lProb > 0.5
|
||||
CC.hudControl.rightLaneVisible = bool(right_lane_visible)
|
||||
CC.hudControl.leftLaneVisible = bool(left_lane_visible)
|
||||
CC.hudControl.rightLaneVisible = True
|
||||
CC.hudControl.leftLaneVisible = True
|
||||
|
||||
recent_blinker = (self.sm.frame - self.last_blinker_frame) * DT_CTRL < 5.0 # 5s blinker cooldown
|
||||
ldw_allowed = self.is_ldw_enabled and CS.vEgo > LDW_MIN_SPEED and not recent_blinker \
|
||||
@@ -576,6 +574,8 @@ class Controls:
|
||||
|
||||
meta = self.sm['modelV2'].meta
|
||||
if len(meta.desirePrediction) and ldw_allowed:
|
||||
right_lane_visible = self.sm['lateralPlan'].rProb > 0.5
|
||||
left_lane_visible = self.sm['lateralPlan'].lProb > 0.5
|
||||
l_lane_change_prob = meta.desirePrediction[Desire.laneChangeLeft - 1]
|
||||
r_lane_change_prob = meta.desirePrediction[Desire.laneChangeRight - 1]
|
||||
l_lane_close = left_lane_visible and (self.sm['modelV2'].laneLines[1].y[0] > -(1.08 + CAMERA_OFFSET))
|
||||
|
||||
@@ -1 +1 @@
|
||||
d616c135e470264dbc40e77b25a4dab1fc449d75
|
||||
c4c4030e5039cc96870857aed08ad132a2d67497
|
||||
Reference in New Issue
Block a user