Skip to content

Commit

Permalink
ACC: Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
David Abrahams committed Sep 21, 2018
1 parent f5d3e51 commit d1d642e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfdrive/car/tesla/ACC_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def update_stat(self, CS, enabled):
# If autoresume is not enabled, manually steering or slowing disables ACC.
if not self.autoresume:
if not enabled or self.user_has_braked or self.has_gone_below_min_speed:
self.enable_adaptive_cruise = False
self.enable_adaptive_cruise = False

# Notify if ACC was toggled
if self.prev_enable_adaptive_cruise and not self.enable_adaptive_cruise:
Expand Down Expand Up @@ -146,7 +146,6 @@ def update_acc(self, enabled, CS, frame, actuators, pcm_speed):
self.human_cruise_action_time = current_time_ms
button_to_press = None


# If ACC is disabled, disengage traditional cruise control.
if (self.prev_enable_adaptive_cruise and not self.enable_adaptive_cruise
and CS.pcm_acc_status == CruiseState.ENABLED:
Expand Down

0 comments on commit d1d642e

Please sign in to comment.