mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-24 01:33:50 +08:00
dragonpilot mod for 0.8.5-4
This commit is contained in:
@@ -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/'
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user