fix.. decelCruise
This commit is contained in:
parent
2a28e7865d
commit
9cde9574cd
@ -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]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user