mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-24 14:12:05 +08:00
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:
@@ -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')
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user