mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
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:
+1
-1
Submodule panda updated: dd22fafc3c...5ab46ab70a
@@ -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 @@
|
||||
5874cd1594e1a9dde61590bf7ff21276427ed555
|
||||
58c5a740a25da4e70899a0466c336a7b5838f394
|
||||
Reference in New Issue
Block a user