|
|
|
@ -67,7 +67,7 @@ def create_fcw_command(packer, fcw): |
|
|
|
|
return packer.make_can_msg("ACC_HUD", 0, values) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_ui_command(packer, steer, chime, left_line, right_line, left_lane_depart, right_lane_depart, enabled): |
|
|
|
|
def create_ui_command(packer, steer, chime, left_line, right_line, left_lane_depart, right_lane_depart, sws_toggle, sws_sensitivity, sws_buzzer, sws_fld, sws_warning, enabled): |
|
|
|
|
values = { |
|
|
|
|
"TWO_BEEPS": chime, |
|
|
|
|
"LDA_ALERT": steer, |
|
|
|
@ -75,18 +75,20 @@ def create_ui_command(packer, steer, chime, left_line, right_line, left_lane_dep |
|
|
|
|
"LEFT_LINE": 3 if left_lane_depart else 1 if left_line else 2, |
|
|
|
|
"BARRIERS" : 1 if enabled else 0, |
|
|
|
|
|
|
|
|
|
# signal pass through |
|
|
|
|
"LANE_SWAY_FLD": sws_fld, |
|
|
|
|
"LANE_SWAY_BUZZER": sws_buzzer, |
|
|
|
|
"LANE_SWAY_WARNING": sws_warning, |
|
|
|
|
"LANE_SWAY_SENSITIVITY": sws_sensitivity, |
|
|
|
|
"LANE_SWAY_TOGGLE": sws_toggle, |
|
|
|
|
|
|
|
|
|
# static signals |
|
|
|
|
"SET_ME_X02": 2, |
|
|
|
|
"SET_ME_X01": 1, |
|
|
|
|
"LKAS_STATUS": 1, |
|
|
|
|
"REPEATED_BEEPS": 0, |
|
|
|
|
"LANE_SWAY_FLD": 7, |
|
|
|
|
"LANE_SWAY_BUZZER": 0, |
|
|
|
|
"LANE_SWAY_WARNING": 0, |
|
|
|
|
"LDA_FRONT_CAMERA_BLOCKED": 0, |
|
|
|
|
"TAKE_CONTROL": 0, |
|
|
|
|
"LANE_SWAY_SENSITIVITY": 2, |
|
|
|
|
"LANE_SWAY_TOGGLE": 1, |
|
|
|
|
"LDA_ON_MESSAGE": 0, |
|
|
|
|
"LDA_SPEED_TOO_LOW": 0, |
|
|
|
|
"LDA_SA_TOGGLE": 1, |
|
|
|
|