why did panda have a boot time (#31978)

* why did panda have a boot time

* update test
pull/31980/head^2
Adeeb Shihadeh 1 year ago committed by GitHub
parent a2a372d314
commit b4fdfeec62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      panda
  2. 9
      selfdrive/boardd/tests/test_pandad.py

@ -1 +1 @@
Subproject commit de061e4f7317dbacc206ef5f038d35a17e8ef0e7
Subproject commit dd82382d5f9fcfbf9958238ee33739693fd3f6fa

@ -102,11 +102,10 @@ class TestPandad(unittest.TestCase):
dt = self._run_test(5)
ts.append(dt)
# 2s for SPI, 5s for USB (due to enumeration)
# 0.2s pandad -> boardd
# 1.1s panda boot time (FIXME: it's all the drivers/harness.h init)
# plus some buffer
assert 1.0 < (sum(ts)/len(ts)) < (2.0 if self.spi else 5.0)
# 5s for USB (due to enumeration)
# - 0.2s pandad -> boardd
# - plus some buffer
assert 0.1 < (sum(ts)/len(ts)) < (0.5 if self.spi else 5.0)
print("startup times", ts, sum(ts) / len(ts))
def test_protocol_version_check(self):

Loading…
Cancel
Save