Honda Nidec: don't actuate while longitudinal is inactive (#24028)

* don't command any pcm_speed when long is not active

* update refs
pull/24012/merge
Shane Smiskol 2022-03-23 18:30:05 -07:00 committed by GitHub
parent a55e25d9d2
commit c88ced1f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ class CarController:
0.5]
# The Honda ODYSSEY seems to have different PCM_ACCEL
# msgs, is it other cars too?
if self.CP.enableGasInterceptor:
if self.CP.enableGasInterceptor or not CC.longActive:
pcm_speed = 0.0
pcm_accel = int(0.0)
elif self.CP.carFingerprint in HONDA_NIDEC_ALT_PCM_ACCEL:

View File

@ -1 +1 @@
e740c2c793a5e2af19a5d52d7a4a45d77eca9412
5bf6cd4a8d3c96eb333ae58d81af3907ac8b2804