From 781965a804c15710373c2d025f8eb1f905a6d3b5 Mon Sep 17 00:00:00 2001 From: KyleBoyer Date: Sat, 21 Dec 2019 11:27:56 -0700 Subject: [PATCH] Fix ACLnudgeless setting ignored (#254) --- selfdrive/controls/lib/pathplanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/lib/pathplanner.py b/selfdrive/controls/lib/pathplanner.py index 5c7953390be2d7..38f74dbaf8ab03 100644 --- a/selfdrive/controls/lib/pathplanner.py +++ b/selfdrive/controls/lib/pathplanner.py @@ -75,7 +75,7 @@ def __init__(self, CP): self.steerRateCost_prev = self.steerRateCost self.setup_mpc() - self.alc_nudge_less = bool(kegman.conf['ALCnudgeLess']) + self.alc_nudge_less = bool(int(kegman.conf['ALCnudgeLess'])) self.alc_min_speed = float(kegman.conf['ALCminSpeed']) self.lane_change_state = LaneChangeState.off