|
|
|
@ -68,11 +68,13 @@ def create_es_lkas(packer, es_lkas_msg, enabled, visual_alert, left_line, right_ |
|
|
|
|
return packer.make_can_msg("ES_LKAS_State", 0, values) |
|
|
|
|
|
|
|
|
|
def create_es_dashstatus(packer, dashstatus_msg): |
|
|
|
|
values = copy.copy(dashstatus_msg) |
|
|
|
|
|
|
|
|
|
# Filter stock LKAS disabled and Keep hands on steering wheel OFF alerts |
|
|
|
|
if dashstatus_msg["LKAS_State_Msg"] in (2, 3): |
|
|
|
|
dashstatus_msg["LKAS_State_Msg"] = 0 |
|
|
|
|
if values["LKAS_State_Msg"] in (2, 3): |
|
|
|
|
values["LKAS_State_Msg"] = 0 |
|
|
|
|
|
|
|
|
|
return packer.make_can_msg("ES_DashStatus", 0, dashstatus_msg) |
|
|
|
|
return packer.make_can_msg("ES_DashStatus", 0, values) |
|
|
|
|
|
|
|
|
|
def create_infotainmentstatus(packer, infotainmentstatus_msg, visual_alert): |
|
|
|
|
# Filter stock LKAS disabled and Keep hands on steering wheel OFF alerts |
|
|
|
|