GM: remove brake scaling (#26080)

* Don't add a weird factor to ret.brake

* update refs
pull/26082/head
Shane Smiskol 3 years ago committed by GitHub
parent 422167cdf9
commit 5d00e5cc71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/car/gm/carstate.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -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:

@ -1 +1 @@
1e4bb3f620bddbe6ead966d6f2dd7db3fd730308
1066a612bcaab6103d44ab93ad68397a85d37833
Loading…
Cancel
Save