fix bug in modelV2 service which was triggering test_loggerd failure (#32892)

* fix services bug

* add nonzero decimation assert
This commit is contained in:
Jimmy
2024-07-03 17:22:45 -07:00
committed by GitHub
parent a8299ef800
commit 9cec7bbfb3
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ class TestServices(unittest.TestCase):
def test_services(self, s):
service = SERVICE_LIST[s]
self.assertTrue(service.frequency <= 104)
self.assertTrue(service.decimation != 0)
def test_generated_header(self):
with tempfile.NamedTemporaryFile(suffix=".h") as f:

View File

@@ -61,7 +61,7 @@ _services: dict[str, tuple] = {
"wideRoadEncodeIdx": (False, 20., 1),
"wideRoadCameraState": (True, 20., 20),
"drivingModelData": (True, 20., 10),
"modelV2": (True, 20., 0),
"modelV2": (True, 20.),
"managerState": (True, 2., 1),
"uploaderState": (True, 0., 1),
"navInstruction": (True, 1., 10),