Skip to content

Commit

Permalink
fix blindspot detection
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 30, 2020
1 parent 83af35b commit 64aeb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/pathplanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def update(self, sm, pm, CP, VM):
(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

Expand Down

0 comments on commit 64aeb80

Please sign in to comment.