Skip to content

Commit

Permalink
Clarify (A)CC mode on dis/engage messages (commaai#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-dev authored Jan 8, 2020
1 parent 6271b50 commit 4264062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/tesla/ACC_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ def update_stat(self, CS, enabled):

# Notify if ACC was toggled
if self.prev_enable_adaptive_cruise and not self.enable_adaptive_cruise:
CS.UE.custom_alert_message(3, "ACC Disabled", 150, 4)
CS.UE.custom_alert_message(3, "%s Disabled" % ("ACC" if self.adaptive else "CC"), 150, 4)
CS.cstm_btns.set_button_status(ACCMode.BUTTON_NAME, ACCState.STANDBY)
elif self.enable_adaptive_cruise:
CS.cstm_btns.set_button_status(ACCMode.BUTTON_NAME, ACCState.ENABLED)
if not self.prev_enable_adaptive_cruise:
CS.UE.custom_alert_message(2, "ACC Enabled", 150)
CS.UE.custom_alert_message(2, "%s Enabled" % ("ACC" if self.adaptive else "CC"), 150)

# Update the UI to show whether the current car state allows ACC.
if CS.cstm_btns.get_button_status(ACCMode.BUTTON_NAME) in [ACCState.STANDBY, ACCState.NOT_READY]:
Expand Down

0 comments on commit 4264062

Please sign in to comment.