diff --git a/selfdrive/car/gm/carstate.py b/selfdrive/car/gm/carstate.py index a5f89c58b0..f90b130d93 100644 --- a/selfdrive/car/gm/carstate.py +++ b/selfdrive/car/gm/carstate.py @@ -50,8 +50,8 @@ class CarState(CarStateBase): # that the brake is being intermittently pressed without user interaction. # To avoid a cruise fault we need to match the ECM's brake pressed signal and threshold # https://static.nhtsa.gov/odi/tsbs/2017/MC-10137629-9999.pdf - ret.brake = pt_cp.vl["ECMAcceleratorPos"]["BrakePedalPos"] / 0xd0 - ret.brakePressed = pt_cp.vl["ECMAcceleratorPos"]["BrakePedalPos"] >= 8 + ret.brake = pt_cp.vl["ECMAcceleratorPos"]["BrakePedalPos"] + ret.brakePressed = ret.brake >= 8 # Regen braking is braking if self.CP.transmissionType == TransmissionType.direct: diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 6a8f5a273c..99257fa930 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -1e4bb3f620bddbe6ead966d6f2dd7db3fd730308 \ No newline at end of file +1066a612bcaab6103d44ab93ad68397a85d37833 \ No newline at end of file