forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
262 changed files
with
13,757 additions
and
9,649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# CONTRIBUTORS | ||
|
||
Due to the way we manage the source code, it is not possible to see all the contributors' info, hence we create a list here. | ||
If you have contributed to DP project before and your name is not listed here, feel free to send us a PR to update this! | ||
|
||
### TEAM | ||
Name | github | Role | ||
------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ||
cafe | [cafe](https://github.com/coffice12) | Resource Provider | ||
kumar | [rav4kumar](https://github.com/rav4kumar) | Release Maintainer | ||
loveloveses | [loveloveses](https://github.com/loveloveses) | Wiki Maintainer | ||
Rick Lan | [efinilan](https://github.com/efinilan) | Release Maintainer | ||
|
||
### CONTRIBUTORS | ||
Name | github | ||
------------------------------------------------------------ | ------------------------------------------------------------ | ||
andy741217 | [andy741217](https://github.com/andy741217) | ||
Arne Schwarck | [arne182](https://github.com/arne182) | ||
berno22 | [berno22](https://github.com/berno22) | ||
Bobbydough | [Bobbydough](https://github.com/bobbydough) | ||
cgw1968 | [cgw1968](https://github.com/cgw1968-5779) | ||
Curtis Jenkins | [actuallylemoncurd](https://github.com/actuallylemoncurd) | ||
DFyffe | [donfyffe](https://github.com/donfyffe) | ||
dinglx | [dingliangxue](https://github.com/dingliangxue) | ||
eyezenheim | [eyezenheim](https://github.com/eyezenheim) | ||
kegman | [kegman](https://github.com/kegman) | ||
lijunhao731 | [lijunhao731](https://github.com/lijunhao731) | ||
lirudy | [lirudy](https://github.com/lirudy) | ||
LOVEChen | [LOVEChen](https://github.com/LOVEChen) | ||
menwenliang | [menwenliang](https://github.com/menwenliang) | ||
Nelson Chen | [nelsonjchen](https://github.com/nelsonjchen) | ||
rming | [Rming](https://github.com/rming) | ||
sebastian4k | [sebastian4k](https://github.com/sebastian4k) | ||
Shane Smiskol | [sshane](https://github.com/sshane) | ||
toyboxZ | [toyboxZ](https://github.com/toyboxZ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
How to install on Oneplus 3t? | ||
------ | ||
1. clone dragonpilot to /data/ and make sure it's named openpilot: | ||
(手動安裝切換至 dp) | ||
``` | ||
cd /data/ && rm -fr openpilot ; git clone https://github.com/dragonpilot-community/dragonpilot.git openpilot -b 0.8.7 | ||
``` | ||
|
||
2. run command: | ||
(在 ssh 畫面下,輸入) | ||
``` | ||
cd /data/openpilot/scripts/ && ./oneplus_update_neos.sh | ||
``` | ||
|
||
3. Let it download and complete it update, after a couple of reboot, your screen will then stay in fastboot mode. | ||
(等待下載並讓它重新開機,沒錯誤的話會進入 Android 機器人更新畫面,等自動重新開機) | ||
|
||
4. In fastboot mode, select use volume button to select to `Recovery mode` then press power button. | ||
(在 fastboot 模式,用音量鍵上下選到 Recovery mode 再按下電源鍵) | ||
|
||
5. In Recovery mode, tap `apply update` -> `Choose from emulated` -> `0/` -> `update.zip` -> `Reboot system now` | ||
(在 Recovery mode,點選 `apply update` -> `Choose from emulated` -> `0/` -> `update.zip` -> `Reboot system now`) | ||
|
||
6. You should be able to boot into openpilot, if touch screen is not working, try to reboot again. | ||
(你現在應該可以進入 openpilot 畫面,如果點擊畫面沒有反應,請再重新開機一次) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set_core_affinity | ||
------ | ||
Jetson Xavier NX has 6 cores running at 1.9 GHz, here is what I've defined | ||
|
||
0 = (not specified) | ||
1 = plannerd / radard | ||
2 = boardd | ||
3 = controlsd | ||
4 = camerad | ||
5 = modeld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import os | ||
import platform | ||
import subprocess | ||
import sysconfig | ||
|
||
arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip() | ||
if platform.system() == "Darwin": | ||
arch = "Darwin" | ||
|
||
cereal_dir = Dir('.') | ||
messaging_dir = Dir('./messaging') | ||
|
||
cpppath = [ | ||
cereal_dir, | ||
messaging_dir, | ||
'/usr/lib/include', | ||
'/opt/homebrew/include', | ||
sysconfig.get_paths()['include'], | ||
] | ||
|
||
libpath = [ | ||
'/opt/homebrew/lib', | ||
] | ||
|
||
AddOption('--test', | ||
action='store_true', | ||
help='build test files') | ||
|
||
AddOption('--asan', | ||
action='store_true', | ||
help='turn on ASAN') | ||
|
||
ccflags_asan = ["-fsanitize=address", "-fno-omit-frame-pointer"] if GetOption('asan') else [] | ||
ldflags_asan = ["-fsanitize=address"] if GetOption('asan') else [] | ||
|
||
env = Environment( | ||
ENV=os.environ, | ||
CC='clang', | ||
CXX='clang++', | ||
CCFLAGS=[ | ||
"-g", | ||
"-fPIC", | ||
"-O2", | ||
"-Wunused", | ||
"-Werror", | ||
] + ccflags_asan, | ||
LDFLAGS=ldflags_asan, | ||
LINKFLAGS=ldflags_asan, | ||
|
||
CFLAGS="-std=gnu11", | ||
CXXFLAGS="-std=c++1z", | ||
CPPPATH=cpppath, | ||
LIBPATH=libpath, | ||
CYTHONCFILESUFFIX=".cpp", | ||
tools=["default", "cython"] | ||
) | ||
|
||
Export('env', 'arch') | ||
|
||
envCython = env.Clone(LIBS=[]) | ||
envCython["CCFLAGS"] += ["-Wno-#warnings", "-Wno-deprecated-declarations"] | ||
if arch == "Darwin": | ||
envCython["LINKFLAGS"] = ["-bundle", "-undefined", "dynamic_lookup"] | ||
elif arch == "aarch64": | ||
envCython["LINKFLAGS"] = ["-shared"] | ||
envCython["LIBS"] = [os.path.basename(sysconfig.get_paths()['include'])] | ||
else: | ||
envCython["LINKFLAGS"] = ["-pthread", "-shared"] | ||
|
||
Export('envCython') | ||
|
||
|
||
SConscript(['SConscript']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using Cxx = import "./include/c++.capnp"; | ||
$Cxx.namespace("cereal"); | ||
|
||
using Java = import "./include/java.capnp"; | ||
$Java.package("ai.comma.openpilot.cereal"); | ||
$Java.outerClassname("dp"); | ||
|
||
@0xbfa7e645486440c7; | ||
|
||
# dp.capnp: a home for deprecated structs | ||
|
||
# dp | ||
struct DragonConf { | ||
dpThermalStarted @0 :Bool; | ||
dpThermalOverheat @1 :Bool; | ||
dpAtl @2 :Bool; | ||
dpDashcamd @3 :Bool; | ||
dpAutoShutdown @4 :Bool; | ||
dpAthenad @5 :Bool; | ||
dpUploader @6 :Bool; | ||
dpLateralMode @7 :UInt8; | ||
dpSignalOffDelay @8 :Float32; | ||
dpLcMinMph @9 :UInt8; | ||
dpLcAutoCont @10 :Bool; | ||
dpLcAutoMinMph @11 :UInt8; | ||
dpLcAutoDelay @12 :Float32; | ||
dpAllowGas @13 :Bool; | ||
dpFollowingProfileCtrl @14 :Bool; | ||
dpFollowingProfile @15 :UInt8; | ||
dpAccelProfileCtrl @16 :Bool; | ||
dpAccelProfile @17 :UInt8; | ||
dpGearCheck @18 :Bool; | ||
dpSpeedCheck @19 :Bool; | ||
dpUiDisplayMode @20 :UInt8; | ||
dpUiSpeed @21 :Bool; | ||
dpUiEvent @22 :Bool; | ||
dpUiMaxSpeed @23 :Bool; | ||
dpUiFace @24 :Bool; | ||
dpUiLane @25 :Bool; | ||
dpUiLead @26 :Bool; | ||
dpUiDev @27 :Bool; | ||
dpUiDevMini @28 :Bool; | ||
dpUiBlinker @29 :Bool; | ||
dpUiBrightness @30 :UInt8; | ||
dpUiVolume @31 :Int8; | ||
dpToyotaLdw @32 :Bool; | ||
dpToyotaSng @33 :Bool; | ||
dpToyotaCruiseOverride @34 :Bool; | ||
dpToyotaCruiseOverrideVego @35 :Bool; | ||
dpToyotaCruiseOverrideAt @36 :Float32; | ||
dpToyotaCruiseOverrideSpeed @37 :Float32; | ||
dpVwTimebombAssist @38 :Bool; | ||
dpIpAddr @39 :Text; | ||
dpCameraOffset @40 :Int8; | ||
dpPathOffset @41 :Int8; | ||
dpLocale @42 :Text; | ||
dpSrLearner @43 :Bool; | ||
dpSrCustom @44 :Float32; | ||
dpAppd @45 :Bool; | ||
dpMapd @46 :Bool; | ||
} |
Oops, something went wrong.