This commit is contained in:
Your Name
2024-05-12 21:37:32 -05:00
parent 62115b2e34
commit b4120aed2e
3 changed files with 7 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ def create_buttons(packer, CP, CAN, cnt, btn):
# return packer.make_can_msg("CRUISE_BUTTONS_ALT", bus, values)
def create_acc_cancel(packer, CP, CAN, cruise_info_copy):
# why are we executing this at all?
# TODO: why do we copy different values here?
if CP.flags & HyundaiFlags.CANFD_CAMERA_SCC.value:
values = {s: cruise_info_copy[s] for s in [
@@ -124,7 +125,7 @@ def create_acc_cancel(packer, CP, CAN, cruise_info_copy):
values.update({
"ACCMode": 4,
"aReqRaw": 0.0,
"aReqVClearpalue": 0.0,
"aReqValue": 0.0,
})
return packer.make_can_msg("SCC_CONTROL", CAN.ECAN, values)