finish hardware move to system/ (#30140)

* finish hardware move to system/

* fix release

* couple more
old-commit-hash: c347096c3e
laptop
Adeeb Shihadeh 2 years ago committed by GitHub
parent 4ec10b3347
commit 61eb6f4f66
  1. 2
      release/files_common
  2. 2
      selfdrive/athena/athenad.py
  3. 2
      selfdrive/athena/tests/test_athenad.py
  4. 1
      selfdrive/hardware
  5. 2
      system/hardware/hw.py
  6. 2
      system/loggerd/config.py
  7. 2
      system/loggerd/tests/test_encoder.py

@ -200,8 +200,6 @@ selfdrive/controls/lib/longitudinal_mpc_lib/.gitignore
selfdrive/controls/lib/lateral_mpc_lib/*
selfdrive/controls/lib/longitudinal_mpc_lib/*
selfdrive/hardware
system/__init__.py
system/hardware/__init__.py

@ -40,7 +40,7 @@ from openpilot.system.loggerd.xattr_cache import getxattr, setxattr
from openpilot.selfdrive.statsd import STATS_DIR
from openpilot.system.swaglog import cloudlog
from openpilot.system.version import get_commit, get_origin, get_short_branch, get_version
from openpilot.selfdrive.hardware.hw import Paths
from openpilot.system.hardware.hw import Paths
# TODO: use socket constant when mypy recognizes this as a valid attribute

@ -21,7 +21,7 @@ from openpilot.selfdrive.athena import athenad
from openpilot.selfdrive.athena.athenad import MAX_RETRY_COUNT, dispatcher
from openpilot.selfdrive.athena.tests.helpers import MockWebsocket, MockParams, MockApi, EchoSocket, with_http_server
from cereal import messaging
from openpilot.selfdrive.hardware.hw import Paths
from openpilot.system.hardware.hw import Paths
class TestAthenadMethods(unittest.TestCase):

@ -1 +0,0 @@
../system/hardware/

@ -1,7 +1,7 @@
import os
from pathlib import Path
from openpilot.selfdrive.hardware import PC
from openpilot.system.hardware import PC
class Paths:
@staticmethod

@ -1,7 +1,7 @@
import os
from pathlib import Path
from openpilot.system.hardware import PC
from openpilot.selfdrive.hardware.hw import Paths
from openpilot.system.hardware.hw import Paths
CAMERA_FPS = 20

@ -16,7 +16,7 @@ from openpilot.common.timeout import Timeout
from openpilot.system.hardware import TICI
from openpilot.selfdrive.manager.process_config import managed_processes
from openpilot.tools.lib.logreader import LogReader
from openpilot.selfdrive.hardware.hw import Paths
from openpilot.system.hardware.hw import Paths
SEGMENT_LENGTH = 2
FULL_SIZE = 2507572

Loading…
Cancel
Save