Controls - Lane Change Customizations - Nudgeless Lane Change

Enable lane changes without requiring manual steering input.
This commit is contained in:
FrogAi 2024-05-27 02:57:32 -07:00
parent 2e90b94ee6
commit c758d4ffe5

View File

@ -66,6 +66,9 @@ class DesireHelper:
blindspot_detected = ((carstate.leftBlindspot and self.lane_change_direction == LaneChangeDirection.left) or
(carstate.rightBlindspot and self.lane_change_direction == LaneChangeDirection.right))
if frogpilot_toggles.nudgeless:
torque_applied = True
if not one_blinker or below_lane_change_speed:
self.lane_change_state = LaneChangeState.off
self.lane_change_direction = LaneChangeDirection.none