fix blindspot detection

This commit is contained in:
Adeeb Shihadeh
2020-06-30 13:44:56 -07:00
parent 83af35bf95
commit 64aeb80dcc
+1 -1
View File
@@ -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