finish hardware move to system/ (#30140)

* finish hardware move to system/

* fix release

* couple more
old-commit-hash: c347096c3e
This commit is contained in:
Adeeb Shihadeh
2023-10-02 16:49:07 -07:00
committed by GitHub
parent 4ec10b3347
commit 61eb6f4f66
7 changed files with 5 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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):

View File

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

View File

@@ -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

View File

@@ -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

View File

@@ -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