Refactor import paths to align with openpilot structure.

Updated several import statements to use the `openpilot` namespace for better consistency and organization. This aligns the sunnypilot components more closely with the overall project structure.
This commit is contained in:
DevTekVE
2025-01-21 20:14:12 +01:00
parent 8cab601ad0
commit 1eabbc2b68
3 changed files with 4 additions and 4 deletions
@@ -4,8 +4,8 @@ import capnp
import numpy as np
from openpilot.selfdrive.modeld.constants import ModelConstants, Plan
from selfdrive.controls.lib.drive_helpers import MIN_SPEED
from selfdrive.modeld.fill_model_msg import ConfidenceClass, fill_xyzt, fill_lane_line_meta, fill_xyz_poly, fill_xyvat, PublishState
from openpilot.selfdrive.controls.lib.drive_helpers import MIN_SPEED
from openpilot.selfdrive.modeld.fill_model_msg import ConfidenceClass, fill_xyzt, fill_lane_line_meta, fill_xyz_poly, fill_xyvat, PublishState
SEND_RAW_PRED = os.getenv('SEND_RAW_PRED')
+1 -1
View File
@@ -11,7 +11,7 @@ from openpilot.system.hardware import TICI
from openpilot.system.hardware.hw import Paths
from cereal import custom
from sunnypilot.models.helpers import get_active_bundle
from openpilot.sunnypilot.models.helpers import get_active_bundle
#
from tinygrad.tensor import Tensor
+1 -1
View File
@@ -24,7 +24,7 @@ from openpilot.selfdrive.modeld.parse_model_outputs import Parser
from openpilot.selfdrive.modeld.fill_model_msg import fill_pose_msg, PublishState
from openpilot.selfdrive.modeld.constants import ModelConstants
from openpilot.selfdrive.modeld.models.commonmodel_pyx import DrivingModelFrame, CLContext
from sunnypilot.modeld_20hz.fill_model_msg_20hz import Meta20hz
from openpilot.sunnypilot.modeld_20hz.fill_model_msg_20hz import Meta20hz
PROCESS_NAME = "selfdrive.modeld.modeld"