Skip to content

Commit 5bc8459

Browse files
committed
Ford: add Escape Mk4
1 parent 53ec2e4 commit 5bc8459

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

selfdrive/car/ford/interface.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=None, disa
2727
# TODO: detect stop-and-go vehicles
2828
stop_and_go = False
2929

30-
if candidate == CAR.FOCUS_MK4:
30+
if candidate == CAR.ESCAPE_MK4:
31+
ret.wheelbase = 2.71
32+
ret.steerRatio = 14.3 # Copied from Focus
33+
tire_stiffness_factor = 0.5328 # Copied from Focus
34+
ret.mass = 1750 + STD_CARGO_KG
35+
36+
elif candidate == CAR.FOCUS_MK4:
3137
ret.wheelbase = 2.7
3238
ret.steerRatio = 14.3
3339
tire_stiffness_factor = 0.5328

selfdrive/car/ford/values.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class CANBUS:
3131

3232

3333
class CAR:
34+
ESCAPE_MK4 = "FORD ESCAPE 4TH GEN"
3435
FOCUS_MK4 = "FORD FOCUS 4TH GEN"
3536

3637

@@ -40,11 +41,29 @@ class FordCarInfo(CarInfo):
4041

4142

4243
CAR_INFO: Dict[str, Union[FordCarInfo, List[FordCarInfo]]] = {
44+
CAR.ESCAPE_MK4: FordCarInfo("Ford Escape 2020"),
4345
CAR.FOCUS_MK4: FordCarInfo("Ford Focus 2018"),
4446
}
4547

4648

4749
FW_VERSIONS = {
50+
CAR.ESCAPE_MK4: {
51+
(Ecu.eps, 0x730, None): [
52+
b'LX6C-14D003-AH\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
53+
],
54+
(Ecu.esp, 0x760, None): [
55+
b'LX6C-2D053-NS\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
56+
],
57+
(Ecu.fwdRadar, 0x764, None): [
58+
b'LB5T-14D049-AB\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
59+
],
60+
(Ecu.fwdCamera, 0x706, None): [
61+
b'LJ6T-14F397-AD\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
62+
],
63+
(Ecu.engine, 0x7e0, None): [
64+
b'LX6A-14C204-ESG\x00\x00\x00\x00\x00\x00\x00\x00\x00',
65+
],
66+
},
4867
CAR.FOCUS_MK4: {
4968
(Ecu.eps, 0x730, None): [
5069
b'JX6C-14D003-AH\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00',
@@ -66,5 +85,6 @@ class FordCarInfo(CarInfo):
6685

6786

6887
DBC = {
88+
CAR.ESCAPE_MK4: dbc_dict('ford_lincoln_base_pt', 'ford_fusion_2018_adas'),
6989
CAR.FOCUS_MK4: dbc_dict('ford_lincoln_base_pt', 'ford_fusion_2018_adas'),
7090
}

selfdrive/car/tests/routes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# TODO: add routes for these cars
1818
non_tested_cars = [
19+
FORD.ESCAPE_MK4,
1920
FORD.FOCUS_MK4,
2021
GM.CADILLAC_ATS,
2122
GM.HOLDEN_ASTRA,

0 commit comments

Comments
 (0)