pull/31821/head
Shane Smiskol 1 year ago
parent c0755a96fb
commit 9c343bb37b
  1. 11
      selfdrive/car/ford/interface.py

@ -43,16 +43,11 @@ class CarInterface(CarInterfaceBase):
pscm_config = next((fw for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None) pscm_config = next((fw for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None)
if pscm_config: if pscm_config:
if len(pscm_config.response) != 24: if len(pscm_config.response) != 24:
# Unexpected length
ret.dashcamOnly = True ret.dashcamOnly = True
else: else:
config_tja = pscm_config.response[7] # Traffic Jam Assist config_tja = pscm_config.response[7] # Traffic Jam Assist (long)
config_lca = pscm_config.response[8] # Lane Centering Assist config_lca = pscm_config.response[8] # Lane Centering Assist (lat)
if config_tja not in (0x00, 0xFF) or config_lca not in (0x00, 0xFF): if config_tja != 0xFF or config_lca != 0xFF:
# Unexpected value
ret.dashcamOnly = True
elif config_tja == 0x00 or config_lca == 0x00:
# TJA or LCA not enabled
ret.dashcamOnly = True ret.dashcamOnly = True
# Auto Transmission: 0x732 ECU or Gear_Shift_by_Wire_FD1 # Auto Transmission: 0x732 ECU or Gear_Shift_by_Wire_FD1

Loading…
Cancel
Save