From 9cde9574cd1226543ee7d87a7233a5433453d6de Mon Sep 17 00:00:00 2001 From: ajouatom Date: Wed, 19 Feb 2025 18:38:45 +0900 Subject: [PATCH] fix.. decelCruise --- selfdrive/car/cruise.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/selfdrive/car/cruise.py b/selfdrive/car/cruise.py index 05a38bf..84d9ec2 100644 --- a/selfdrive/car/cruise.py +++ b/selfdrive/car/cruise.py @@ -442,8 +442,6 @@ class VCruiseCarrot: v_cruise_kph, button_type, long_pressed = self._carrot_command(v_cruise_kph, button_type, long_pressed) - cruise_activated = not self.enabled_last and CC.enabled - if button_type in [ButtonType.accelCruise, ButtonType.decelCruise]: if self.autoCruiseControl_cancel_timer > 0: self._add_log(f"AutoCruiseControl cancel timer RESET {button_type}") @@ -471,8 +469,6 @@ class VCruiseCarrot: self._pause_auto_speed_up = True if self._soft_hold_active > 0: self._cruise_control(-1, -1, "Cruise off,softhold mode (decelCruise)") - elif cruise_activated: - v_cruise_kph = max(self.v_ego_kph_set, self._cruise_speed_min) elif self.v_ego_kph_set > v_cruise_kph + 2: v_cruise_kph = max(self.v_ego_kph_set, self._cruise_speed_min) elif self._cruise_button_mode in [0, 1]: