mirror of https://github.com/commaai/openpilot.git
move sentry/stats to system/ (#32490)
* move sentry/stats to system/
* fix
old-commit-hash: da6fd75125
This commit is contained in:
parent
eca631af2d
commit
7a3e454d27
|
@ -53,9 +53,6 @@ tools/replay/*.cc
|
||||||
tools/replay/*.h
|
tools/replay/*.h
|
||||||
|
|
||||||
selfdrive/__init__.py
|
selfdrive/__init__.py
|
||||||
selfdrive/sentry.py
|
|
||||||
selfdrive/tombstoned.py
|
|
||||||
selfdrive/statsd.py
|
|
||||||
|
|
||||||
selfdrive/updated/**
|
selfdrive/updated/**
|
||||||
|
|
||||||
|
@ -162,6 +159,10 @@ selfdrive/controls/lib/longitudinal_mpc_lib/*
|
||||||
system/__init__.py
|
system/__init__.py
|
||||||
system/*.py
|
system/*.py
|
||||||
|
|
||||||
|
system/sentry.py
|
||||||
|
system/tombstoned.py
|
||||||
|
system/statsd.py
|
||||||
|
|
||||||
system/hardware/__init__.py
|
system/hardware/__init__.py
|
||||||
system/hardware/base.h
|
system/hardware/base.h
|
||||||
system/hardware/base.py
|
system/hardware/base.py
|
||||||
|
|
|
@ -7,7 +7,7 @@ import traceback
|
||||||
|
|
||||||
from cereal import log
|
from cereal import log
|
||||||
import cereal.messaging as messaging
|
import cereal.messaging as messaging
|
||||||
import openpilot.selfdrive.sentry as sentry
|
import openpilot.system.sentry as sentry
|
||||||
from openpilot.common.params import Params, ParamKeyType
|
from openpilot.common.params import Params, ParamKeyType
|
||||||
from openpilot.common.text_window import TextWindow
|
from openpilot.common.text_window import TextWindow
|
||||||
from openpilot.system.hardware import HARDWARE, PC
|
from openpilot.system.hardware import HARDWARE, PC
|
||||||
|
|
|
@ -12,7 +12,7 @@ from setproctitle import setproctitle
|
||||||
|
|
||||||
from cereal import car, log
|
from cereal import car, log
|
||||||
import cereal.messaging as messaging
|
import cereal.messaging as messaging
|
||||||
import openpilot.selfdrive.sentry as sentry
|
import openpilot.system.sentry as sentry
|
||||||
from openpilot.common.basedir import BASEDIR
|
from openpilot.common.basedir import BASEDIR
|
||||||
from openpilot.common.params import Params
|
from openpilot.common.params import Params
|
||||||
from openpilot.common.swaglog import cloudlog
|
from openpilot.common.swaglog import cloudlog
|
||||||
|
|
|
@ -76,10 +76,10 @@ procs = [
|
||||||
PythonProcess("plannerd", "selfdrive.controls.plannerd", only_onroad),
|
PythonProcess("plannerd", "selfdrive.controls.plannerd", only_onroad),
|
||||||
PythonProcess("radard", "selfdrive.controls.radard", only_onroad),
|
PythonProcess("radard", "selfdrive.controls.radard", only_onroad),
|
||||||
PythonProcess("thermald", "selfdrive.thermald.thermald", always_run),
|
PythonProcess("thermald", "selfdrive.thermald.thermald", always_run),
|
||||||
PythonProcess("tombstoned", "selfdrive.tombstoned", always_run, enabled=not PC),
|
PythonProcess("tombstoned", "system.tombstoned", always_run, enabled=not PC),
|
||||||
PythonProcess("updated", "selfdrive.updated.updated", only_offroad, enabled=not PC),
|
PythonProcess("updated", "selfdrive.updated.updated", only_offroad, enabled=not PC),
|
||||||
PythonProcess("uploader", "system.loggerd.uploader", always_run),
|
PythonProcess("uploader", "system.loggerd.uploader", always_run),
|
||||||
PythonProcess("statsd", "selfdrive.statsd", always_run),
|
PythonProcess("statsd", "system.statsd", always_run),
|
||||||
|
|
||||||
# debug procs
|
# debug procs
|
||||||
NativeProcess("bridge", "cereal/messaging", ["./bridge"], notcar),
|
NativeProcess("bridge", "cereal/messaging", ["./bridge"], notcar),
|
||||||
|
|
|
@ -15,7 +15,7 @@ from openpilot.common.filter_simple import FirstOrderFilter
|
||||||
from openpilot.common.realtime import config_realtime_process
|
from openpilot.common.realtime import config_realtime_process
|
||||||
from openpilot.common.transformations.camera import DEVICE_CAMERAS
|
from openpilot.common.transformations.camera import DEVICE_CAMERAS
|
||||||
from openpilot.common.transformations.model import get_warp_matrix
|
from openpilot.common.transformations.model import get_warp_matrix
|
||||||
from openpilot.selfdrive import sentry
|
from openpilot.system import sentry
|
||||||
from openpilot.selfdrive.car.car_helpers import get_demo_car_params
|
from openpilot.selfdrive.car.car_helpers import get_demo_car_params
|
||||||
from openpilot.selfdrive.controls.lib.desire_helper import DesireHelper
|
from openpilot.selfdrive.controls.lib.desire_helper import DesireHelper
|
||||||
from openpilot.selfdrive.modeld.runners import ModelRunner, Runtime
|
from openpilot.selfdrive.modeld.runners import ModelRunner, Runtime
|
||||||
|
|
|
@ -54,12 +54,12 @@ PROCS = {
|
||||||
"selfdrive.monitoring.dmonitoringd": 4.0,
|
"selfdrive.monitoring.dmonitoringd": 4.0,
|
||||||
"./proclogd": 1.54,
|
"./proclogd": 1.54,
|
||||||
"system.logmessaged": 0.2,
|
"system.logmessaged": 0.2,
|
||||||
"selfdrive.tombstoned": 0,
|
"system.tombstoned": 0,
|
||||||
"./logcatd": 0,
|
"./logcatd": 0,
|
||||||
"system.micd": 6.0,
|
"system.micd": 6.0,
|
||||||
"system.timed": 0,
|
"system.timed": 0,
|
||||||
"selfdrive.boardd.pandad": 0,
|
"selfdrive.boardd.pandad": 0,
|
||||||
"selfdrive.statsd": 0.4,
|
"system.statsd": 0.4,
|
||||||
"selfdrive.navd.navd": 0.4,
|
"selfdrive.navd.navd": 0.4,
|
||||||
"system.loggerd.uploader": (0.5, 15.0),
|
"system.loggerd.uploader": (0.5, 15.0),
|
||||||
"system.loggerd.deleter": 0.1,
|
"system.loggerd.deleter": 0.1,
|
||||||
|
|
|
@ -4,7 +4,7 @@ import threading
|
||||||
from openpilot.common.params import Params
|
from openpilot.common.params import Params
|
||||||
from openpilot.system.hardware import HARDWARE
|
from openpilot.system.hardware import HARDWARE
|
||||||
from openpilot.common.swaglog import cloudlog
|
from openpilot.common.swaglog import cloudlog
|
||||||
from openpilot.selfdrive.statsd import statlog
|
from openpilot.system.statsd import statlog
|
||||||
|
|
||||||
CAR_VOLTAGE_LOW_PASS_K = 0.011 # LPF gain for 45s tau (dt/tau / (dt/tau + 1))
|
CAR_VOLTAGE_LOW_PASS_K = 0.011 # LPF gain for 45s tau (dt/tau / (dt/tau + 1))
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ from openpilot.common.realtime import DT_TRML
|
||||||
from openpilot.selfdrive.controls.lib.alertmanager import set_offroad_alert
|
from openpilot.selfdrive.controls.lib.alertmanager import set_offroad_alert
|
||||||
from openpilot.system.hardware import HARDWARE, TICI, AGNOS
|
from openpilot.system.hardware import HARDWARE, TICI, AGNOS
|
||||||
from openpilot.system.loggerd.config import get_available_percent
|
from openpilot.system.loggerd.config import get_available_percent
|
||||||
from openpilot.selfdrive.statsd import statlog
|
from openpilot.system.statsd import statlog
|
||||||
from openpilot.common.swaglog import cloudlog
|
from openpilot.common.swaglog import cloudlog
|
||||||
from openpilot.selfdrive.thermald.power_monitoring import PowerMonitoring
|
from openpilot.selfdrive.thermald.power_monitoring import PowerMonitoring
|
||||||
from openpilot.selfdrive.thermald.fan_controller import TiciFanController
|
from openpilot.selfdrive.thermald.fan_controller import TiciFanController
|
||||||
|
|
|
@ -9,7 +9,7 @@ import time
|
||||||
import glob
|
import glob
|
||||||
from typing import NoReturn
|
from typing import NoReturn
|
||||||
|
|
||||||
import openpilot.selfdrive.sentry as sentry
|
import openpilot.system.sentry as sentry
|
||||||
from openpilot.system.hardware.hw import Paths
|
from openpilot.system.hardware.hw import Paths
|
||||||
from openpilot.common.swaglog import cloudlog
|
from openpilot.common.swaglog import cloudlog
|
||||||
from openpilot.system.version import get_build_metadata
|
from openpilot.system.version import get_build_metadata
|
Loading…
Reference in New Issue