mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 03:22:07 +08:00
GM: remove brake scaling (#26080)
* Don't add a weird factor to ret.brake * update refs old-commit-hash: 5d00e5cc71106c6c4a9b25e3a2873e9e0606544c
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user