Skip to content

Commit

Permalink
Update hyundaican for Correct Message ID on LKAS11 (commaai#746)
Browse files Browse the repository at this point in the history
This is the only trace of CF_Lkas_Icon found under /car/hyundai relative to open .dbc

commaai/opendbc#172
  • Loading branch information
TK211X authored and rbiasini committed Aug 1, 2019
1 parent 81a1601 commit 958f696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/hyundai/hyundaican.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def make_can_msg(addr, dat, alt):

def create_lkas11(packer, car_fingerprint, apply_steer, steer_req, cnt, enabled, lkas11, hud_alert, keep_stock=False):
values = {
"CF_Lkas_Icon": 3 if enabled else 0,
"CF_Lkas_Bca_R": 3 if enabled else 0,
"CF_Lkas_LdwsSysState": 3 if steer_req else 1,
"CF_Lkas_SysWarning": hud_alert,
"CF_Lkas_LdwsLHWarning": lkas11["CF_Lkas_LdwsLHWarning"] if keep_stock else 0,
Expand Down

0 comments on commit 958f696

Please sign in to comment.