mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 06:22:06 +08:00
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
This commit is contained in:
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user