better clarity

pull/24768/head
Jason Young 3 years ago
parent c8cc02ace2
commit 312d6e0106
  1. 10
      selfdrive/car/volkswagen/carcontroller.py

@ -94,11 +94,11 @@ class CarController:
# **** ACC Button Controls ********************************************** # # **** ACC Button Controls ********************************************** #
if self.CP.pcmCruise and self.frame % P.GRA_ACC_STEP == 0: if self.CP.pcmCruise and self.frame % P.GRA_ACC_STEP == 0:
if CC.cruiseControl.cancel or CC.cruiseControl.resume: idx = (CS.gra_stock_values["COUNTER"] + 1) % 16
idx = (CS.gra_stock_values["COUNTER"] + 1) % 16 if CC.cruiseControl.cancel:
can_sends.append(self.create_acc_buttons_control(self.packer_pt, ext_bus, CS.gra_stock_values, idx, can_sends.append(self.create_acc_buttons_control(self.packer_pt, ext_bus, CS.gra_stock_values, idx, cancel=True))
cancel=CC.cruiseControl.cancel, elif CC.cruiseControl.resume:
resume=CC.cruiseControl.resume)) can_sends.append(self.create_acc_buttons_control(self.packer_pt, ext_bus, CS.gra_stock_values, idx, resume=True))
new_actuators = actuators.copy() new_actuators = actuators.copy()
new_actuators.steer = self.apply_steer_last / P.STEER_MAX new_actuators.steer = self.apply_steer_last / P.STEER_MAX

Loading…
Cancel
Save