|
|
@ -93,9 +93,8 @@ class CarController(): |
|
|
|
# Cancel ACC if it's engaged with OP disengaged. |
|
|
|
# Cancel ACC if it's engaged with OP disengaged. |
|
|
|
self.graButtonStatesToSend = BUTTON_STATES.copy() |
|
|
|
self.graButtonStatesToSend = BUTTON_STATES.copy() |
|
|
|
self.graButtonStatesToSend["cancel"] = True |
|
|
|
self.graButtonStatesToSend["cancel"] = True |
|
|
|
elif c.enabled and CS.out.cruiseState.standstill: |
|
|
|
elif c.cruiseControl.override: |
|
|
|
# Blip the Resume button if we're engaged at standstill. |
|
|
|
# Send Resume button when planner wants car to move |
|
|
|
# FIXME: This is a naive implementation, improve with visiond or radar input. |
|
|
|
|
|
|
|
self.graButtonStatesToSend = BUTTON_STATES.copy() |
|
|
|
self.graButtonStatesToSend = BUTTON_STATES.copy() |
|
|
|
self.graButtonStatesToSend["resumeCruise"] = True |
|
|
|
self.graButtonStatesToSend["resumeCruise"] = True |
|
|
|
|
|
|
|
|
|
|
|