This commit is contained in:
Your Name
2024-05-03 23:28:51 -05:00
parent 8a6926faf3
commit c22403f4fa

View File

@@ -183,7 +183,8 @@ class CarController(CarControllerBase):
def create_button_messages(self, CC: car.CarControl, CS: car.CarState, use_clu11: bool):
can_sends = []
sys.stderr.write(str({'use_clu11': use_clu11}) + '\n')
# False
# sys.stderr.write(str({'use_clu11': use_clu11}) + '\n')
if use_clu11:
if CC.cruiseControl.cancel:
@@ -208,9 +209,10 @@ class CarController(CarControllerBase):
self.last_button_frame = self.frame
# cruise standstill resume
elif CC.cruiseControl.resume:
elif CC.cruiseControl.resume or CS.lkas_enabled:
if self.CP.flags & HyundaiFlags.CANFD_ALT_BUTTONS:
# TODO: resume for alt button cars
sys.stderr.write(str({'canfdalt': True}) + '\n')
pass
else:
for _ in range(20):