From 10d988bbfe234d6f9953646548acc5bf3ec248c9 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 23 Mar 2022 18:30:05 -0700 Subject: [PATCH] Honda Nidec: don't actuate while longitudinal is inactive (#24028) * don't command any pcm_speed when long is not active * update refs --- selfdrive/car/honda/carcontroller.py | 2 +- selfdrive/test/process_replay/ref_commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/honda/carcontroller.py b/selfdrive/car/honda/carcontroller.py index 62aecd71a92891..dc7648ce5806b8 100644 --- a/selfdrive/car/honda/carcontroller.py +++ b/selfdrive/car/honda/carcontroller.py @@ -185,7 +185,7 @@ def update(self, CC, CS): 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: diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 5ab2c510e0914b..567a04353e4067 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -e740c2c793a5e2af19a5d52d7a4a45d77eca9412 \ No newline at end of file +5bf6cd4a8d3c96eb333ae58d81af3907ac8b2804 \ No newline at end of file