|
|
@ -42,8 +42,9 @@ class CarInterface(CarInterfaceBase): |
|
|
|
else: |
|
|
|
else: |
|
|
|
# Lock out if the car does not have needed lateral and longitudinal control APIs. |
|
|
|
# Lock out if the car does not have needed lateral and longitudinal control APIs. |
|
|
|
# Note that we also check CAN for adaptive cruise, but no known signal for LCA exists |
|
|
|
# Note that we also check CAN for adaptive cruise, but no known signal for LCA exists |
|
|
|
pscm_config = next((fw.response for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), None) |
|
|
|
pscm_config = next((fw.response for fw in car_fw if fw.ecu == Ecu.eps and b'\x22\xDE\x01' in fw.request), b"") |
|
|
|
if pscm_config is None or len(pscm_config) != 24: |
|
|
|
if not docs: |
|
|
|
|
|
|
|
if len(pscm_config) != 24: |
|
|
|
ret.dashcamOnly = True |
|
|
|
ret.dashcamOnly = True |
|
|
|
else: |
|
|
|
else: |
|
|
|
config_tja = pscm_config[7] # Traffic Jam Assist |
|
|
|
config_tja = pscm_config[7] # Traffic Jam Assist |
|
|
|