Skip to content

Commit 9e71913

Browse files
authored
Ford: log stock AEB (#28228)
log AEB old-commit-hash: 902cc89
1 parent 694372f commit 9e71913

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

selfdrive/car/ford/carstate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def update(self, cp, cp_cam):
7575

7676
# safety
7777
ret.stockFcw = bool(cp_cam.vl["ACCDATA_3"]["FcwVisblWarn_B_Rq"])
78-
ret.stockAeb = ret.stockFcw and ret.cruiseState.enabled
78+
ret.stockAeb = bool(cp_cam.vl["ACCDATA_2"]["CmbbBrkDecel_B_Rq"])
7979

8080
# button presses
8181
ret.leftBlinker = cp.vl["Steering_Data_FD1"]["TurnLghtSwtch_D_Stat"] == 1
@@ -217,6 +217,8 @@ def get_can_parser(CP):
217217
def get_cam_can_parser(CP):
218218
signals = [
219219
# sig_name, sig_address
220+
("CmbbBrkDecel_B_Rq", "ACCDATA_2"), # AEB actuation request bit
221+
220222
("HaDsply_No_Cs", "ACCDATA_3"),
221223
("HaDsply_No_Cnt", "ACCDATA_3"),
222224
("AccStopStat_D_Dsply", "ACCDATA_3"), # ACC stopped status message
@@ -261,6 +263,7 @@ def get_cam_can_parser(CP):
261263

262264
checks = [
263265
# sig_address, frequency
266+
("ACCDATA_2", 50),
264267
("ACCDATA_3", 5),
265268
("IPMA_Data", 1),
266269
]

0 commit comments

Comments
 (0)