Fix lane change when blinker is turned off early (#2324)
This commit is contained in:
parent
1b3f37d0cb
commit
ce85e402f4
|
@ -106,7 +106,7 @@ class PathPlanner():
|
|||
elif sm['carState'].rightBlinker:
|
||||
self.lane_change_direction = LaneChangeDirection.right
|
||||
|
||||
if (not active) or (self.lane_change_timer > LANE_CHANGE_TIME_MAX) or (not one_blinker) or (not self.lane_change_enabled):
|
||||
if (not active) or (self.lane_change_timer > LANE_CHANGE_TIME_MAX) or (not self.lane_change_enabled):
|
||||
self.lane_change_state = LaneChangeState.off
|
||||
self.lane_change_direction = LaneChangeDirection.none
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue