mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
Remove unnecessary hardware check in modeld
This commit is contained in:
@@ -8,7 +8,7 @@ from typing import Dict, Optional
|
||||
from setproctitle import setproctitle
|
||||
from cereal.messaging import PubMaster, SubMaster
|
||||
from cereal.visionipc import VisionIpcClient, VisionStreamType, VisionBuf
|
||||
from openpilot.system.hardware import PC, TICI
|
||||
from openpilot.system.hardware import TICI
|
||||
from openpilot.system.swaglog import cloudlog
|
||||
from openpilot.common.params import Params
|
||||
from openpilot.common.filter_simple import FirstOrderFilter
|
||||
@@ -94,8 +94,7 @@ class ModelState:
|
||||
def main():
|
||||
cloudlog.bind(daemon="selfdrive.modeld.modeld")
|
||||
setproctitle("selfdrive.modeld.modeld")
|
||||
if not PC:
|
||||
config_realtime_process(7, 54)
|
||||
config_realtime_process(7, 54)
|
||||
|
||||
cl_context = CLContext()
|
||||
model = ModelState(cl_context)
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
from libcpp cimport bool
|
||||
from libc.stdint cimport uint32_t, uint64_t
|
||||
|
||||
from .commonmodel cimport mat3
|
||||
|
||||
cdef extern from "cereal/messaging/messaging.h":
|
||||
cdef cppclass MessageBuilder:
|
||||
size_t getSerializedSize()
|
||||
|
||||
Reference in New Issue
Block a user