From 6d04f375e08262192ead794e86b60224f33ae813 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 15 Apr 2021 21:36:09 -0700 Subject: [PATCH] upload raw on tici old-commit-hash: a3df0e98273a93fc460f5ac699e3cb77edfecf62 --- selfdrive/manager/manager.py | 5 ++++- selfdrive/ui/qt/offroad/settings.cc | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/selfdrive/manager/manager.py b/selfdrive/manager/manager.py index 7f6939ec47..b5d833ffb3 100755 --- a/selfdrive/manager/manager.py +++ b/selfdrive/manager/manager.py @@ -12,7 +12,7 @@ from common.basedir import BASEDIR from common.params import Params from common.text_window import TextWindow from selfdrive.boardd.set_time import set_time -from selfdrive.hardware import HARDWARE +from selfdrive.hardware import HARDWARE, TICI from selfdrive.manager.helpers import unblock_stdout from selfdrive.manager.process import ensure_running from selfdrive.manager.process_config import managed_processes @@ -36,6 +36,9 @@ def manager_init(): ("OpenpilotEnabledToggle", "1"), ] + if TICI: + default_params.append(("IsUploadRawEnabled", "1")) + if params.get_bool("RecordFrontLock"): params.put_bool("RecordFront", True) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index e11c4fe033..890539b7f1 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -49,11 +49,15 @@ TogglesPanel::TogglesPanel(QWidget *parent) : QWidget(parent) { "Use features from the open source community that are not maintained or supported by comma.ai and have not been confirmed to meet the standard safety model. These features include community supported cars and community supported hardware. Be extra cautious when using these features", "../assets/offroad/icon_shell.png", this)); + +#ifndef QCOM2 toggles.append(new ParamControl("IsUploadRawEnabled", "Upload Raw Logs", "Upload full logs and full resolution video by default while on WiFi. If not enabled, individual logs can be marked for upload at my.comma.ai/useradmin.", "../assets/offroad/icon_network.png", this)); +#endif + ParamControl *record_toggle = new ParamControl("RecordFront", "Record and Upload Driver Camera", "Upload data from the driver facing camera and help improve the driver monitoring algorithm.",