mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-13 05:12:11 +08:00
LDW: fix deprecated ll prob reference (#25681)
* fix crash when ldw is turned on * in lane change * Revert "in lane change" This reverts commit 98e7224f81d2036689339779e582e2085c9c4d3e. old-commit-hash: d222461a3e630690d05fbd07ed0d80feadfae944
This commit is contained in:
@@ -709,8 +709,8 @@ class Controls:
|
||||
model_v2 = self.sm['modelV2']
|
||||
desire_prediction = model_v2.meta.desirePrediction
|
||||
if len(desire_prediction) and ldw_allowed:
|
||||
right_lane_visible = self.sm['lateralPlan'].rProb > 0.5
|
||||
left_lane_visible = self.sm['lateralPlan'].lProb > 0.5
|
||||
right_lane_visible = model_v2.laneLineProbs[2] > 0.5
|
||||
left_lane_visible = model_v2.laneLineProbs[1] > 0.5
|
||||
l_lane_change_prob = desire_prediction[Desire.laneChangeLeft - 1]
|
||||
r_lane_change_prob = desire_prediction[Desire.laneChangeRight - 1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user