From dd108bf0a4d6b4dffb64480dc2a48211dc8cae0f Mon Sep 17 00:00:00 2001 From: kegman Date: Mon, 4 Feb 2019 23:30:19 -0500 Subject: [PATCH] Eliminate brake oscillations and grinding / crunching / ripping sound when using Pedal (Honda Pilot Only) (#475) * Eliminate brake oscillations when using Pedal * Simplified code * syntax error fix * Grinding code as applied to Honda Pilot only Each model may need its own setting due to USER_BRAKE noise disengagements * correction: self.CP.carFingerprint instead of CP.carFingerprint * Add Ridgeline to Pedal Grinding fix Confirmed to work also on Ridgeline old-commit-hash: ee35b905d7407925fcea7eb616309ad3c8bd1c8a --- selfdrive/car/honda/carstate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/honda/carstate.py b/selfdrive/car/honda/carstate.py index 97407775f3..a064a0b720 100644 --- a/selfdrive/car/honda/carstate.py +++ b/selfdrive/car/honda/carstate.py @@ -303,7 +303,11 @@ class CarState(object): self.user_brake = cp.vl["VSA_STATUS"]['USER_BRAKE'] self.pcm_acc_status = cp.vl["POWERTRAIN_DATA"]['ACC_STATUS'] self.hud_lead = cp.vl["ACC_HUD"]['HUD_LEAD'] - + + # gets rid of Pedal Grinding noise when brake is pressed at slow speeds for some models + if self.CP.carFingerprint in (CAR.PILOT, CAR.PILOT_2019, CAR.RIDGELINE): + if self.user_brake > 0.05: + self.brake_pressed = 1 # carstate standalone tester if __name__ == '__main__':