remove connect

This commit is contained in:
ajouatom
2026-04-29 17:45:54 +09:00
parent b44ae2536b
commit 46b60bb50c
4 changed files with 7 additions and 24 deletions

View File

@@ -317,7 +317,6 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
{"MaxTimeOffroadMin", {PERSISTENT, INT, "60"}},
{"DisableDM", {PERSISTENT, INT, "0"}},
{"EnableConnect", {PERSISTENT, INT, "0"}},
{"MuteDoor", {PERSISTENT, INT, "0"}},
{"MuteSeatbelt", {PERSISTENT, INT, "0"}},

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [[ "$(cat /data/params/d/EnableConnect)" == "2" ]]; then
export API_HOST="https://api.carrotpilot.app"
export ATHENA_HOST="wss://athena.carrotpilot.app"
fi
#if [[ "$(cat /data/params/d/EnableConnect)" == "2" ]]; then
# export API_HOST="https://api.carrotpilot.app"
# export ATHENA_HOST="wss://athena.carrotpilot.app"
#fi
exec ./launch_chffrplus.sh

View File

@@ -1233,22 +1233,6 @@
"ctitle": "禁用驾驶员监控",
"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": "시작",
"name": "MuteDoor",

View File

@@ -76,8 +76,8 @@ def and_(*fns):
def enable_dm(started, params, CP: car.CarParams) -> bool:
return (started or params.get_bool("IsDriverViewEnabled")) and params.get_int("DisableDM") == 0
def enable_connect(started, params, CP: car.CarParams) -> bool:
return params.get_int("EnableConnect") > 0
#def enable_connect(started, params, CP: car.CarParams) -> bool:
# return params.get_int("EnableConnect") > 0
def enable_xiaoge_data(started, params, CP: car.CarParams) -> bool:
return params.get_bool("ShareData")
@@ -129,7 +129,7 @@ procs = [
PythonProcess("hardwared", "system.hardware.hardwared", always_run),
PythonProcess("tombstoned", "system.tombstoned", always_run, 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("feedbackd", "selfdrive.ui.feedback.feedbackd", only_onroad),