Subaru: update brake pressed signal (#21012)

* Change Global brakePressed to Brake_Status Brake signal

* Add Brake_Status Brake signal and check

* bump panda

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4c45e907221395bf02cdfa49012f815028cf41dc
This commit is contained in:
martinl
2021-09-29 08:00:35 +03:00
committed by GitHub
parent f02787eb75
commit 989af0a6b0
3 changed files with 5 additions and 3 deletions
+1 -1
Submodule panda updated: dd22fafc3c...5ab46ab70a
+3 -1
View File
@@ -21,7 +21,7 @@ class CarState(CarStateBase):
if self.car_fingerprint in PREGLOBAL_CARS:
ret.brakePressed = cp.vl["Brake_Pedal"]["Brake_Pedal"] > 2
else:
ret.brakePressed = cp.vl["Brake_Pedal"]["Brake_Pedal"] > 1e-5
ret.brakePressed = cp.vl["Brake_Status"]["Brake"] == 1
ret.wheelSpeeds.fl = cp.vl["Wheel_Speeds"]["FL"] * CV.KPH_TO_MS
ret.wheelSpeeds.fr = cp.vl["Wheel_Speeds"]["FR"] * CV.KPH_TO_MS
@@ -125,12 +125,14 @@ class CarState(CarStateBase):
if CP.carFingerprint not in PREGLOBAL_CARS:
signals += [
("Steer_Warning", "Steering_Torque", 0),
("Brake", "Brake_Status", 0),
("UNITS", "Dashlights", 0),
]
checks += [
("Dashlights", 10),
("BodyInfo", 10),
("Brake_Status", 50),
("CruiseControl", 20),
]
else:
+1 -1
View File
@@ -1 +1 @@
5874cd1594e1a9dde61590bf7ff21276427ed555
58c5a740a25da4e70899a0466c336a7b5838f394