fix blindspot detection

old-commit-hash: 64aeb80dcc
commatwo_master
Adeeb Shihadeh 5 years ago
parent 3cadb46f31
commit 8b2ae9319a
  1. 2
      selfdrive/controls/lib/pathplanner.py

@ -115,7 +115,7 @@ class PathPlanner():
(sm['carState'].steeringTorque < 0 and self.lane_change_direction == LaneChangeDirection.right))
blindspot_detected = ((sm['carState'].leftBlindspot and self.lane_change_direction == LaneChangeDirection.left) or
(sm['carState'].leftBlindspot and self.lane_change_direction == LaneChangeDirection.left))
(sm['carState'].rightBlindspot and self.lane_change_direction == LaneChangeDirection.right))
lane_change_prob = self.LP.l_lane_change_prob + self.LP.r_lane_change_prob

Loading…
Cancel
Save