|
|
@ -142,8 +142,8 @@ def create_acc_msg(packer, CAN: CanBus, long_active: bool, gas: float, accel: fl |
|
|
|
return packer.make_can_msg("ACCDATA", CAN.main, values) |
|
|
|
return packer.make_can_msg("ACCDATA", CAN.main, values) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_acc_ui_msg(packer, CAN: CanBus, CP, main_on: bool, enabled: bool, standstill: bool, hud_control, |
|
|
|
def create_acc_ui_msg(packer, CAN: CanBus, CP, main_on: bool, enabled: bool, fcw_alert: bool, standstill: bool, |
|
|
|
stock_values: dict): |
|
|
|
hud_control, stock_values: dict): |
|
|
|
""" |
|
|
|
""" |
|
|
|
Creates a CAN message for the Ford IPC adaptive cruise, forward collision warning and traffic jam |
|
|
|
Creates a CAN message for the Ford IPC adaptive cruise, forward collision warning and traffic jam |
|
|
|
assist status. |
|
|
|
assist status. |
|
|
@ -214,6 +214,10 @@ def create_acc_ui_msg(packer, CAN: CanBus, CP, main_on: bool, enabled: bool, sta |
|
|
|
"AccTGap_D_Dsply": 4, # Fixed time gap in UI |
|
|
|
"AccTGap_D_Dsply": 4, # Fixed time gap in UI |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Forwards FCW alert from IPMA |
|
|
|
|
|
|
|
if fcw_alert: |
|
|
|
|
|
|
|
values["FcwVisblWarn_B_Rq"] = 1 # FCW visible alert |
|
|
|
|
|
|
|
|
|
|
|
return packer.make_can_msg("ACCDATA_3", CAN.main, values) |
|
|
|
return packer.make_can_msg("ACCDATA_3", CAN.main, values) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|