mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-07-31 14:22:05 +08:00
Cancel lane change on blinker off
old-commit-hash: 105b95ffd712e462149ab1df2de8b3f1d2307850
This commit is contained in:
@@ -98,7 +98,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:
|
||||
if (not active) or (self.lane_change_timer > LANE_CHANGE_TIME_MAX) or (not one_blinker):
|
||||
self.lane_change_state = LaneChangeState.off
|
||||
self.lane_change_direction = LaneChangeDirection.none
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user