mirror of
https://github.com/ajouatom/openpilot.git
synced 2026-06-08 11:04:57 +08:00
remove connect
This commit is contained in:
@@ -317,7 +317,6 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
|||||||
{"MaxTimeOffroadMin", {PERSISTENT, INT, "60"}},
|
{"MaxTimeOffroadMin", {PERSISTENT, INT, "60"}},
|
||||||
|
|
||||||
{"DisableDM", {PERSISTENT, INT, "0"}},
|
{"DisableDM", {PERSISTENT, INT, "0"}},
|
||||||
{"EnableConnect", {PERSISTENT, INT, "0"}},
|
|
||||||
{"MuteDoor", {PERSISTENT, INT, "0"}},
|
{"MuteDoor", {PERSISTENT, INT, "0"}},
|
||||||
{"MuteSeatbelt", {PERSISTENT, INT, "0"}},
|
{"MuteSeatbelt", {PERSISTENT, INT, "0"}},
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if [[ "$(cat /data/params/d/EnableConnect)" == "2" ]]; then
|
#if [[ "$(cat /data/params/d/EnableConnect)" == "2" ]]; then
|
||||||
export API_HOST="https://api.carrotpilot.app"
|
# export API_HOST="https://api.carrotpilot.app"
|
||||||
export ATHENA_HOST="wss://athena.carrotpilot.app"
|
# export ATHENA_HOST="wss://athena.carrotpilot.app"
|
||||||
fi
|
#fi
|
||||||
exec ./launch_chffrplus.sh
|
exec ./launch_chffrplus.sh
|
||||||
|
|||||||
@@ -1233,22 +1233,6 @@
|
|||||||
"ctitle": "禁用驾驶员监控",
|
"ctitle": "禁用驾驶员监控",
|
||||||
"cdescr": "1. 禁用 DM, 2: + 开启 WebRTC, 需要重启"
|
"cdescr": "1. 禁用 DM, 2: + 开启 WebRTC, 需要重启"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"group": "시작",
|
|
||||||
"name": "EnableConnect",
|
|
||||||
"title": "EnableConnect",
|
|
||||||
"descr": "(1:콤마, 2:당근)커넥트를 사용합니다\n 상황에 따라 BAN될 수 있습니다\n 재부팅 필요",
|
|
||||||
"egroup": "START",
|
|
||||||
"etitle": "EnableConnect",
|
|
||||||
"edescr": "Using (1:comma, 2:carrot) Connect. May be banned depending on the situation. Reboot required.",
|
|
||||||
"min": 0,
|
|
||||||
"max": 2,
|
|
||||||
"default": 0,
|
|
||||||
"unit": 1,
|
|
||||||
"cgroup": "启动设置",
|
|
||||||
"ctitle": "开启连接 (Connect)",
|
|
||||||
"cdescr": "使用 (1:comma, 2:carrot) 连接。根据情况可能会被封禁。需要重启。"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"group": "시작",
|
"group": "시작",
|
||||||
"name": "MuteDoor",
|
"name": "MuteDoor",
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ def and_(*fns):
|
|||||||
def enable_dm(started, params, CP: car.CarParams) -> bool:
|
def enable_dm(started, params, CP: car.CarParams) -> bool:
|
||||||
return (started or params.get_bool("IsDriverViewEnabled")) and params.get_int("DisableDM") == 0
|
return (started or params.get_bool("IsDriverViewEnabled")) and params.get_int("DisableDM") == 0
|
||||||
|
|
||||||
def enable_connect(started, params, CP: car.CarParams) -> bool:
|
#def enable_connect(started, params, CP: car.CarParams) -> bool:
|
||||||
return params.get_int("EnableConnect") > 0
|
# return params.get_int("EnableConnect") > 0
|
||||||
|
|
||||||
def enable_xiaoge_data(started, params, CP: car.CarParams) -> bool:
|
def enable_xiaoge_data(started, params, CP: car.CarParams) -> bool:
|
||||||
return params.get_bool("ShareData")
|
return params.get_bool("ShareData")
|
||||||
@@ -129,7 +129,7 @@ procs = [
|
|||||||
PythonProcess("hardwared", "system.hardware.hardwared", always_run),
|
PythonProcess("hardwared", "system.hardware.hardwared", always_run),
|
||||||
PythonProcess("tombstoned", "system.tombstoned", always_run, enabled=not PC),
|
PythonProcess("tombstoned", "system.tombstoned", always_run, enabled=not PC),
|
||||||
PythonProcess("updated", "system.updated.updated", enable_updated, enabled=not PC),
|
PythonProcess("updated", "system.updated.updated", enable_updated, enabled=not PC),
|
||||||
PythonProcess("uploader", "system.loggerd.uploader", enable_connect),
|
#PythonProcess("uploader", "system.loggerd.uploader", enable_connect),
|
||||||
PythonProcess("statsd", "system.statsd", always_run),
|
PythonProcess("statsd", "system.statsd", always_run),
|
||||||
PythonProcess("feedbackd", "selfdrive.ui.feedback.feedbackd", only_onroad),
|
PythonProcess("feedbackd", "selfdrive.ui.feedback.feedbackd", only_onroad),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user