dragonpilot mod for 0.8.5-4

This commit is contained in:
Rick Lan
2021-07-02 12:49:43 +08:00
parent 145b222f0d
commit 522fb06db7
224 changed files with 9120 additions and 7777 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import os
from pathlib import Path
from selfdrive.hardware import PC
from selfdrive.hardware import PC, JETSON
if os.environ.get('LOGGERD_ROOT', False):
ROOT = os.environ['LOGGERD_ROOT']
elif PC:
elif PC or JETSON:
ROOT = os.path.join(str(Path.home()), ".comma", "media", "0", "realdata")
else:
ROOT = '/data/media/0/realdata/'
+1 -1
View File
@@ -16,7 +16,7 @@
#include "selfdrive/hardware/hw.h"
const std::string LOG_ROOT =
Hardware::PC() ? util::getenv_default("HOME", "/.comma/media/0/realdata", "/data/media/0/realdata")
(Hardware::PC() || Hardware::JETSON()) ? util::getenv_default("HOME", "/.comma/media/0/realdata", "/data/media/0/realdata")
: "/data/media/0/realdata";
#define LOGGER_MAX_HANDLES 16
+1 -1
View File
@@ -357,7 +357,7 @@ int main(int argc, char** argv) {
encoder_threads.push_back(std::thread(encoder_thread, LOG_CAMERA_ID_FCAMERA));
s.rotate_state[LOG_CAMERA_ID_FCAMERA].enabled = true;
if (!Hardware::PC() && Params().getBool("RecordFront")) {
if (!Hardware::PC() && !Hardware::JETSON() && Params().getBool("RecordFront")) {
encoder_threads.push_back(std::thread(encoder_thread, LOG_CAMERA_ID_DCAMERA));
s.rotate_state[LOG_CAMERA_ID_DCAMERA].enabled = true;
}
+1 -2
View File
@@ -195,8 +195,7 @@ def uploader_fn(exit_event):
dongle_id = params.get("DongleId", encoding='utf8')
if dongle_id is None:
cloudlog.info("uploader missing dongle_id")
raise Exception("uploader can't start without dongle id")
return
if TICI and not Path("/data/media").is_mount():
cloudlog.warning("NVME not mounted")