Skip to content

Commit

Permalink
Honda Nidec: don't actuate while longitudinal is inactive (commaai#24028
Browse files Browse the repository at this point in the history
)

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

* update refs
  • Loading branch information
sshane authored and budney committed Mar 28, 2022
1 parent a1e95e4 commit 10d988b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion selfdrive/car/honda/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/test/process_replay/ref_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e740c2c793a5e2af19a5d52d7a4a45d77eca9412
5bf6cd4a8d3c96eb333ae58d81af3907ac8b2804

0 comments on commit 10d988b

Please sign in to comment.