diff --git a/panda b/panda index 2806eecea..cb88a1756 160000 --- a/panda +++ b/panda @@ -1 +1 @@ -Subproject commit 2806eecea2a50c9cb1bd6deae0e56da0a384bce2 +Subproject commit cb88a1756ba2b8b06e06102691c75f8aa87f687b diff --git a/selfdrive/test/test_models.py b/selfdrive/test/test_models.py index 6b9595b6c..3be0f96b3 100755 --- a/selfdrive/test/test_models.py +++ b/selfdrive/test/test_models.py @@ -14,7 +14,7 @@ from selfdrive.boardd.boardd import can_capnp_to_can_list, can_list_to_can_capnp from selfdrive.car.fingerprints import all_known_cars from selfdrive.car.car_helpers import interfaces from selfdrive.car.gm.values import CAR as GM -from selfdrive.car.honda.values import CAR as HONDA +from selfdrive.car.honda.values import CAR as HONDA, HONDA_BOSCH from selfdrive.car.hyundai.values import CAR as HYUNDAI from selfdrive.car.toyota.values import CAR as TOYOTA from selfdrive.test.test_routes import routes, non_tested_cars @@ -232,6 +232,10 @@ class TestCarModel(unittest.TestCase): if self.CP.carFingerprint == TOYOTA.SIENNA and checks['brakePressed'] < 25: checks['brakePressed'] = 0 + # Honda Nidec uses button enable in panda, but pcm enable in openpilot + if self.CP.carName == "honda" and self.CP.carFingerprint not in HONDA_BOSCH and checks['controlsAllowed'] < 25: + checks['controlsAllowed'] = 0 + failed_checks = {k: v for k, v in checks.items() if v > 0} self.assertFalse(len(failed_checks), f"panda safety doesn't agree with openpilot: {failed_checks}")