Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tesla devel bb #88

Open
wants to merge 1,051 commits into
base: mod_alca
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1051 commits
Select commit Hold shift + click to select a range
322d986
RADAR WORKS and some tweaks for speed limit in kph
BogGyver Dec 20, 2018
4610a6e
Faster NEOS download and auto removal of NEOS image after installatio…
rbiasini Dec 21, 2018
853bcda
Adds 2019 Ridgeline fingerprint (#473)
energee Dec 21, 2018
b5d8230
add self.CP = CP as with other carstate files (#459)
arne182 Dec 21, 2018
f41cb3b
Replaced 60 msg. C-HR print w/ 73 msg. C-HR print (#467)
ErichMoraga Dec 21, 2018
b4e41f6
force screen off mode unti Comma fixes tri_state
BogGyver Dec 22, 2018
58e716f
Read from usb/present instead of usb/online (#484)
braden337 Dec 25, 2018
4d2ff10
Clean Up hyundai (#481)
emmertex Dec 27, 2018
67e7f6d
Update 0x365 for Rav4H from @squall and my observations (#490)
arne182 Dec 29, 2018
0fded2c
Added EX-L subsection for the existing 2019 Pilot (#489)
ErichMoraga Dec 31, 2018
d84e64b
Fixed TOC anchor links (#492)
energee Jan 3, 2019
9489997
ubfinished DAS moveto Panda
BogGyver Jan 4, 2019
1cb039b
Create visions-wiggly
BogGyver Jan 7, 2019
9bd3d36
Add files via upload
BogGyver Jan 7, 2019
d15d67d
Delete visions-wiggly
BogGyver Jan 7, 2019
69bf277
added wiggly
BogGyver Jan 7, 2019
a6c1653
virtual tri-state w/ ui button; human steering no longer optional; wi…
BogGyver Jan 7, 2019
4985f14
NOW switch between standard and wiggly with ui button (restarts comma…
BogGyver Jan 7, 2019
f30e5ef
using reboot instead of tmuz script
BogGyver Jan 7, 2019
54b1be9
tweaks for the touch screen and timing of the reboot script
BogGyver Jan 7, 2019
56b56f8
fixes in visiond script
BogGyver Jan 7, 2019
b78ed77
Adding GM Steering Rate (#495)
CryptoKylan Jan 9, 2019
943b152
Fix the touch issues with UI since the latest Comma code update
BogGyver Jan 9, 2019
0711189
final fix for touch on UI
BogGyver Jan 9, 2019
06b2e9b
remove speed limit from pos 1 and 3 of the tri state since it is alre…
BogGyver Jan 9, 2019
845508b
fixed max torque, for more actual torque
Gernby Jan 10, 2019
5443792
Delete visiond
Gernby Jan 10, 2019
504f750
0.5.6 visiond
Gernby Jan 10, 2019
ce24cca
Fix timeout that creates CAN error message.
BogGyver Jan 11, 2019
9eb1666
Merge new 2019 Civic and existing 2017-18 Civic Hatch (#446)
csouers Jan 12, 2019
9cf542d
Updated links from Slack to Discord
rbiasini Jan 14, 2019
c7c08c0
first pass at DAS emulation in Panda. might have errors
BogGyver Jan 15, 2019
1146a37
few DAS changes
BogGyver Jan 15, 2019
ae4d2dd
fix speed limit
BogGyver Jan 15, 2019
70b353d
fix das can message
BogGyver Jan 15, 2019
baa7b73
Merge branch 'devel' of https://github.com/Gernby/openpilot into devel
Gernby Jan 16, 2019
9d3e144
moved all can messages for Tesla into Panda. EON only sends one can m…
BogGyver Jan 17, 2019
ba381a6
work for forcing pedal over CC for IC integration NOT FINISHED
BogGyver Jan 17, 2019
0aaa9d6
revB Giraffe GPIO Changes
appleguru Jan 18, 2019
f98dc5a
Add missing rx hook timestamp
appleguru Jan 18, 2019
8995c50
some changes in the DAS emulation on Panda; untested;
BogGyver Jan 18, 2019
a89e9c0
will display HOLD when car CC is on without OP
BogGyver Jan 18, 2019
d0a8167
Merge branch 'tesla_pedal-0.5.7' into tesla_pedal-0.5.7
BogGyver Jan 18, 2019
c989104
Merge pull request #23 from appleguru/tesla_pedal-0.5.7
BogGyver Jan 18, 2019
06b94da
incrementing ID of the stalk spammer
BogGyver Jan 18, 2019
4f66a66
fixing the idx for spamming of stalk
BogGyver Jan 18, 2019
4a280ab
ALCA state is 5 bit not 3.... duh
BogGyver Jan 18, 2019
577545c
working pedal over cc
BogGyver Jan 18, 2019
e338e7e
adding warning for pedal override as well as making sure that code wo…
BogGyver Jan 18, 2019
4f4936e
added pedal presses warning when in ACC or PDL
BogGyver Jan 18, 2019
d5a33a2
tried fake DI_state; code commented out
BogGyver Jan 18, 2019
755afca
fix in DI_state idx calculation
BogGyver Jan 18, 2019
a90149c
fix "accelerator pressed" warning when pesal not engaged
BogGyver Jan 19, 2019
d7dd684
Some work on the DAS implementation; also added variables in carstate…
BogGyver Jan 21, 2019
bd7650a
fix brake lights issue (always on?)
BogGyver Jan 21, 2019
d5f8643
Increment hatchback year (#508)
csouers Jan 22, 2019
3319111
Updated lat control
SippieCup Jan 22, 2019
7d21d5f
Re-enable GMLAN timer after timeout
appleguru Jan 22, 2019
41731ba
DAS status fixes
BogGyver Jan 22, 2019
10b1109
Merge branch 'tesla_pedal-0.5.7' of https://github.com/boggyver/openp…
BogGyver Jan 22, 2019
22d543d
seatbelt signal; warnings; increased treshhold for CAN errors
BogGyver Jan 23, 2019
ece9cf9
Merge panda subtree
Jan 23, 2019
d21c659
Squashed 'panda/' changes from 293fa33..9ee6285
Jan 23, 2019
f364a3e
Merge opendbc subtree
Jan 23, 2019
ea35a00
Squashed 'opendbc/' changes from e108b6b..b632acf
Jan 23, 2019
b967da5
openpilot v0.5.8 release
Jan 23, 2019
bfe3471
added speed dependent factor to desired_angle to improve angles at lo…
BogGyver Jan 24, 2019
5ef0a6e
fine tuned variable angle factor
BogGyver Jan 24, 2019
5a83481
Merge pull request #24 from BogGyver/tesla_devel_bb
BogGyver Jan 24, 2019
00c6436
adding /data/bb_openpilot.cf configuration file
BogGyver Jan 24, 2019
7f327e5
alert improvements
BogGyver Jan 24, 2019
73c1df7
fix typos, Jeep tuning (#511)
adhintz Jan 26, 2019
860623f
Add missing mapd and orbd dirs into README.md (#515)
Jan 26, 2019
238c5b5
Update README.md
BogGyver Jan 28, 2019
1f2a687
Making my branch TESLA only. Need more room in Panda for code.
BogGyver Jan 28, 2019
2c9d5af
removal of snpe libs (#517)
rbiasini Jan 29, 2019
701458e
tweaks
BogGyver Jan 30, 2019
abf380f
Merge branch 'devel' of https://github.com/commaai/openpilot into com…
BogGyver Jan 30, 2019
3d64681
Merge branch 'commaai-devel' into tesla_devel_bb
BogGyver Jan 30, 2019
ce7e915
Update README.md
BogGyver Jan 30, 2019
b70eca9
Update README.md
BogGyver Jan 30, 2019
fc1db08
Update README.md
BogGyver Jan 30, 2019
7e810d0
Changed visiond makefile to play nice with wiggly
BogGyver Jan 30, 2019
86dc515
Merge branch 'tesla_devel_bb' of https://github.com/boggyver/openpilo…
BogGyver Jan 30, 2019
50b10c5
Update PCC_module.py
BogGyver Jan 30, 2019
9d908f9
Merge pull request #27 from BogGyver/Patch-for-pedal-from-David
BogGyver Jan 30, 2019
c6b8ff8
Update PCC_module.py
BogGyver Jan 30, 2019
1746ebd
no adjustement factor for steer angle with 0.5.8
BogGyver Jan 30, 2019
fd12371
ALCA asjustment for 0.5.8
BogGyver Jan 30, 2019
6d737ca
Merge branch 'devel' of https://github.com/commaa/openpilot into
Gernby Feb 5, 2019
167ef82
Merge fix
Gernby Feb 5, 2019
4ed0725
another merge fix
Gernby Feb 5, 2019
ee35b90
Eliminate brake oscillations and grinding / crunching / ripping sound…
NeonGalaxy75 Feb 5, 2019
8d8f723
tweaks for ALCA and CAN error
BogGyver Feb 6, 2019
fcada69
Update PCC_module.py
BogGyver Feb 6, 2019
c3bb46c
Merge pull request #28 from BogGyver/David's-long-speed-control-in-tu…
BogGyver Feb 6, 2019
bbec426
fix panda build.mk; fix PCC slowing down in turns; add roll logic for…
BogGyver Feb 6, 2019
9e00d4b
fixes for map dirven slowing down in turns and roll compensation
BogGyver Feb 6, 2019
351129a
adding driver monitoring switch to confi
BogGyver Feb 7, 2019
23512ba
Readme: FCA giraffe added
rbiasini Feb 7, 2019
b3c2368
Merge branch 'tesla' into tesla_devel_bb
BogGyver Feb 7, 2019
24c2b11
Merge pull request #29 from BogGyver/tesla_devel_bb
BogGyver Feb 7, 2019
1ef06f4
Update README.md
BogGyver Feb 7, 2019
15dd7d9
adding basic gyro module
BogGyver Feb 8, 2019
521f95e
Merge branch 'tesla_devel_bb' of https://github.com/boggyver/openpilo…
BogGyver Feb 8, 2019
906c7b6
fixing sym link for visiond
BogGyver Feb 8, 2019
d8d83e6
Adding Gyro info
BogGyver Feb 8, 2019
10d16ec
tweaks for GYRO ui screen
BogGyver Feb 8, 2019
03f13e6
Add "Accept-Encoding: gzip" header to mapd.py to reduce data consumpt…
eFiniLan Feb 13, 2019
88246af
Allow uploader.py to compress rlog without upload permission (#471)
eFiniLan Feb 14, 2019
90f6e58
Squashed commit of the following:
Gernby Feb 15, 2019
576348e
Updated KpV and KiV for some cars.
Gernby Feb 15, 2019
b836d60
Updated based on rolling-tune stage 1
Gernby Feb 16, 2019
17a5c7b
Update README.md
Gernby Feb 16, 2019
4f8dd77
Update README.md
Gernby Feb 16, 2019
a25e215
Squashed 'panda/' changes from 9ee6285..39c1e39
Feb 20, 2019
26da755
Merge panda subtree
Feb 20, 2019
603f3f1
Squashed 'opendbc/' changes from b632acf..45c3285
Feb 20, 2019
27f405b
Merge opendbc subtree
Feb 20, 2019
9a79df8
Squashed 'pyextra/' changes from 8cc1594..0d19c13
Feb 20, 2019
fdb04d9
Merge pyextra subtree
Feb 20, 2019
0207a97
openpilot v0.5.9 release
Feb 20, 2019
57e9310
gyro and some other tweaks
BogGyver Feb 21, 2019
4a6178e
Merge branch 'devel' of https://github.com/commaai/openpilot into com…
BogGyver Feb 21, 2019
969f6f7
Update README.md
BogGyver Feb 21, 2019
57cda03
merging 0.5.9
BogGyver Feb 21, 2019
69fccff
Merge pull request #32 from BogGyver/tesla_devel_bb
BogGyver Feb 21, 2019
1a90084
Update latcontrol.py
BogGyver Feb 21, 2019
fb6de59
Update controlsd.py
BogGyver Feb 21, 2019
d8d73aa
Merge pull request #31 from BogGyver/commaai-devel
BogGyver Feb 21, 2019
5c8aa72
Update Panda
legonigel Feb 21, 2019
3a49dac
added sftp
Gernby Feb 22, 2019
73c8877
Merge branch 'devel' of https://github.com/commaai/openpilot into devel
Gernby Feb 22, 2019
15fa666
Chrysler updates (#537)
legonigel Feb 22, 2019
e57a9ac
configuring git
Gernby Feb 22, 2019
4712458
Merge branch 'devel' of https://github.com/Gernby/openpilot into deve
Gernby Feb 22, 2019
5a0aae3
git config
Gernby Feb 22, 2019
9e28ef9
git config
Gernby Feb 22, 2019
4101ddc
Update README.md
Gernby Feb 22, 2019
a1819ea
git config
Gernby Feb 22, 2019
2ea0602
Merge branch 'devel' of https://github.com/gernby/openpilot into devel
Gernby Feb 22, 2019
eef45dc
Merge branch 'devel' of https://github.com/Gernby/openpilot into devel
Gernby Feb 22, 2019
2629080
git config
Gernby Feb 22, 2019
e7c52d5
Merge branch 'devel' of https://github.com/gernby/openpilot into devel
Gernby Feb 22, 2019
031996f
git cleanup
Gernby Feb 22, 2019
64cd45f
gitignore
Gernby Feb 22, 2019
8b7dfb6
remove Pacifica 2019 from supported car list (#538)
adhintz Feb 22, 2019
f020361
.gitignore visiond (#539)
legonigel Feb 25, 2019
b3398b2
Updated Civic values from stage 4
Gernby Feb 27, 2019
445dd71
Fixed boardd to run at exactly 200HzFixed boardd to run at exactly 200Hz
Gernby Feb 27, 2019
cd70b10
about to merge
Gernby Feb 27, 2019
06963f0
Merge branch 'devel' of https://github.com/commaai/openpilot into res…
Gernby Feb 27, 2019
b91298a
Merge branch 'resonant-mpc-interp-PR' of https://github.com/Gernby/op…
Gernby Feb 27, 2019
a05a310
more merge updates
Gernby Feb 27, 2019
d516067
iirge branch 'resonant-mpc-interp-059' of https://github.com/Gernby/o…
Gernby Feb 27, 2019
6512927
merge fix
Gernby Feb 28, 2019
7694682
code for future traffic light detection
BogGyver Feb 28, 2019
d881aa7
hopefully workinghopefully working
Gernby Mar 1, 2019
542e301
realtime tweak
Gernby Mar 1, 2019
8d37193
fixed realtime sync
Gernby Mar 1, 2019
7f1e5ae
Merge branch 'pr/33' into tesla_devel_bb
BogGyver Mar 4, 2019
451b0ce
add parameters for FF from Gernby
BogGyver Mar 4, 2019
151d8e8
Update launch_chffrplus.sh
BogGyver Mar 4, 2019
7b921de
some basic stuff for git
BogGyver Mar 4, 2019
2f86283
launch changes
BogGyver Mar 4, 2019
ad81934
Update launch_chffrplus.sh
BogGyver Mar 4, 2019
2194a90
gitignore
BogGyver Mar 4, 2019
dde9e35
gitignore
BogGyver Mar 4, 2019
e041263
reverted KiV adjustment and updated boardd synchronization
Gernby Mar 4, 2019
e64c4da
fixed syncfixed sync
Gernby Mar 4, 2019
fee7d26
Fixed clean-up mistake in boardd
Gernby Mar 4, 2019
73f72e0
PCC changes from David and fixing pedal street speed limit
BogGyver Mar 4, 2019
bf35972
bug fixes; ALCA still not functional
BogGyver Mar 4, 2019
cd2e5d1
Merge branch 'pr/34' into tesla_devel_bb
BogGyver Mar 5, 2019
93d650a
Merge branch 'tesla_devel_bb' of https://github.com/boggyver/openpilo…
BogGyver Mar 5, 2019
53ded80
fix the Gernby code to return the correct angle for ALCA
BogGyver Mar 5, 2019
b526de8
updated resonant values
Gernby Mar 5, 2019
642f3a8
few more tweaks for max speed vs speed limit
BogGyver Mar 5, 2019
225d6f8
turning sync on for can bus
BogGyver Mar 5, 2019
00ebaf4
fixed sync issues between drives
Gernby Mar 5, 2019
9e86b87
reverted some parameters
Gernby Mar 6, 2019
06c1fdc
tweaks and panda changes
BogGyver Mar 6, 2019
c725bc6
fixes the IC integration when pedal/acc not engaged
BogGyver Mar 7, 2019
308c162
adding support for noctua fan and charge limitters
BogGyver Mar 8, 2019
8e8e60f
settings to prevent upload while tethering plus Tesla logo for spinner
BogGyver Mar 8, 2019
d25baa2
tweaks for config file
BogGyver Mar 8, 2019
019b8aa
Merge branch 'pr/35' into tesla_devel_bb
BogGyver Mar 8, 2019
952d519
Update thermald.py
tb205gti Mar 9, 2019
e35b0f9
Merge pull request #36 from tb205gti/tesla_devel_Noctua
BogGyver Mar 9, 2019
20ce4d0
fixing the pedal code folder
BogGyver Mar 9, 2019
792def8
prevent unneeded writes to config file
BogGyver Mar 9, 2019
5d07d6c
fix the battery level control and LED color
BogGyver Mar 11, 2019
7fa50ed
one minor LED tweak
BogGyver Mar 11, 2019
1458fc5
added bat load, charge satus and fan speed to OFF screen
BogGyver Mar 11, 2019
19d1e64
pull charger status from different file
BogGyver Mar 11, 2019
1eeba2c
last tweak for charger limits
BogGyver Mar 11, 2019
11870ee
disable thermald debug
BogGyver Mar 12, 2019
3a6886c
latest in DAS-IC integration
BogGyver Mar 21, 2019
92d3dd9
now with some lane curvature - needs improvement
BogGyver Mar 22, 2019
462bd4c
now with fused lanes - requires panda flash
BogGyver Mar 22, 2019
7e7aae0
small tweak
BogGyver Mar 22, 2019
51d2334
averages to smothen path and leas car position on IC
BogGyver Mar 22, 2019
2394243
increase average over 15 readings
BogGyver Mar 22, 2019
a4b23f0
first take at data integration for maps
BogGyver Mar 22, 2019
daf2082
added some switches for various map/visual combos
BogGyver Mar 22, 2019
0fab731
flag to use map data to shown AP path
BogGyver Mar 22, 2019
12f6853
fix bug in offramp data that would crash OP on entering highway drivi…
BogGyver Mar 23, 2019
799f94b
fix for radar data Dx/Dy
BogGyver Mar 24, 2019
d511603
first take at integrating map data to control speed
BogGyver Mar 26, 2019
0752da5
maps integration, radar info from car, more switches
BogGyver Mar 28, 2019
0974f22
getting long control data from AP (miles over speed linit)
BogGyver Mar 28, 2019
cb91e62
found a bug in the ACC cruise with map data
BogGyver Mar 30, 2019
c213e92
adding a fix for DAS_status2 message
BogGyver Apr 2, 2019
a7929ff
controlling ACC via map data and speed limits same as Pedal
BogGyver Apr 4, 2019
f1122de
Update ACC_module.py
BogGyver Apr 4, 2019
89c1ddd
Merge pull request #37 from BogGyver/DAS_status2-patch
BogGyver Apr 4, 2019
cb4b2df
Merge pull request #38 from BogGyver/ACC-map-integration
BogGyver Apr 4, 2019
e5003dd
using hands_on message when steering override; minor tweaks to UI int…
BogGyver Apr 5, 2019
67d0c45
enable OP from autoster button; control follow distance from front co…
BogGyver Apr 6, 2019
4778792
Merge pull request #39 from BogGyver/tesla_devel_map_speed_integration
BogGyver Apr 8, 2019
62dd268
now with custom integration and messages
BogGyver Apr 8, 2019
4531d95
fix for map data
BogGyver Apr 8, 2019
3312c15
updated DBC file for Tesla
BogGyver Apr 9, 2019
0428478
only update speed limit when we have a valid value
BogGyver Apr 9, 2019
1482025
fixed the new signals
BogGyver Apr 9, 2019
cbeeb26
tweak in map data displayed
BogGyver Apr 9, 2019
5627386
fix alca spam message
BogGyver Apr 9, 2019
d96f7b0
final fix for ALCA messaging
BogGyver Apr 9, 2019
77b96ec
adjust displayed max speed limit based on speed limit and offset
BogGyver Apr 10, 2019
11c53bb
using fleetSpees when no speed limit present and map aware speed cont…
BogGyver Apr 10, 2019
8032389
acc implemention of fleetspeed when no speed limit
BogGyver Apr 10, 2019
4247be5
new test logic for map data integration for Pedal
BogGyver Apr 11, 2019
08bb9a5
missed file
BogGyver Apr 11, 2019
976e73b
map based speed limit logic (test) for ACC
BogGyver Apr 11, 2019
e1b1b4c
best ALCA; lane width and position to IC; panda update
BogGyver Apr 12, 2019
8d62a8d
fix ACC module error
BogGyver Apr 13, 2019
7762766
Update latcontrol.py
BogGyver Apr 13, 2019
5ae2d28
Reduce maximum pedal change per sec
Apr 14, 2019
305c6cd
Update ACC_module.py
BogGyver Apr 14, 2019
8a0d2e2
fix ACC speed
BogGyver Apr 15, 2019
ce2f85e
Fix ACC upper limit
BogGyver Apr 15, 2019
9f9be64
Merge tesla_devel_map_speed_integration into tesla_devel_bb
BogGyver Apr 18, 2019
be04b13
Merge branch 'tesla' into tesla_devel_bb
BogGyver Apr 20, 2019
57ce883
Update config file defaults to match a basic setup / add comments
rafcabezas May 15, 2019
218c675
Merge pull request #49 from BogGyver/feature/config-defaults-updates
BogGyver May 15, 2019
4785334
New tinklad process
rafcabezas May 24, 2019
1cc0195
Added fix1916 flag to config file and code to fix the CAN change
BogGyver May 30, 2019
aaaae8c
Merge pull request #61 from BogGyver/feature/tinklad-1916-backport-to…
rafcabezas Jun 6, 2019
e400e48
Fix for crash with no git remote
rafcabezas Jun 11, 2019
124761f
Merge pull request #65 from BogGyver/bugfix/fix-crash-no-remote-branc…
rafcabezas Jun 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
.ipynb_checkpoints
.idea
.sconsign.dblite
.vscode
model2.png
a.out

*.DSYM
*.d
*.pyc
Expand All @@ -22,13 +22,19 @@ a.out
*.vcd
config.json
clcache

launch_chffrplus.sh
.vscode/*.json
selfdrive/visiond/visiond
.vscode/
board/obj/
selfdrive/boardd/boardd
selfdrive/visiond/visiond
selfdrive/logcatd/logcatd
selfdrive/proclogd/proclogd
selfdrive/ui/ui
selfdrive/test/tests/plant/out
openpilot_tools/
/src/

one
.vscode/*.json
./launch_chffrplus.sh
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ script:
- docker run --rm
-v "$(pwd)"/selfdrive/test/tests/plant/out:/tmp/openpilot/selfdrive/test/tests/plant/out
tmppilot /bin/sh -c 'cd /tmp/openpilot/selfdrive/test/tests/plant && OPTEST=1 ./test_longitudinal.py'

branches:
only:
- /.*/
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Our software is open source so you can solve your own problems without needing help from others. And if you solve a problem and are so kind, you can upstream it for the rest of the world to use.

Most open source development activity is coordinated through our [slack](https://slack.comma.ai). A lot of documentation is available on our [medium](https://medium.com/@comma_ai/)
Most open source development activity is coordinated through our [Discord](https://discord.comma.ai). A lot of documentation is available on our [medium](https://medium.com/@comma_ai/)

## Getting Started

* Join our slack [slack.comma.ai](https://slack.comma.ai)
* Join our [Discord](https://discord.comma.ai)
* Make sure you have a [GitHub account](https://github.com/signup/free)
* Fork [our repositories](https://github.com/commaai) on GitHub

Expand Down
21 changes: 20 additions & 1 deletion Dockerfile.openpilot
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
FROM ubuntu:16.04
ENV PYTHONUNBUFFERED 1

RUN apt-get update && apt-get install -y build-essential clang vim screen wget bzip2 git libglib2.0-0 python-pip capnproto libcapnp-dev libzmq5-dev libffi-dev libusb-1.0-0
RUN apt-get update && apt-get install -y \
build-essential \
clang \
vim \
screen \
wget \
bzip2 \
git \
libglib2.0-0 \
python-pip \
capnproto \
libcapnp-dev \
libzmq5-dev \
libffi-dev \
libusb-1.0-0 \
libssl-dev \
ocl-icd-libopencl1 \
ocl-icd-opencl-dev \
opencl-headers

RUN pip install numpy==1.11.2 scipy==0.18.1 matplotlib==2.1.2

COPY requirements_openpilot.txt /tmp/
Expand Down
132 changes: 71 additions & 61 deletions README.md

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
Version 0.5.9 (2019-02-10)
========================
* Improve calibration using a dedicated neural network
* Abstract planner in its own process to remove lags in controls process
* Improve speed limits with country/region defaults by road type
* Reduce mapd data usage with gzip thanks to eFiniLan
* Zip log files in the background to reduce disk usage
* Kia Optima support thanks to emmertex!
* Buick Regal 2018 support thanks to HOYS!
* Comma pedal support for Toyota thanks to wocsor! Note: tuning needed and not maintained by comma
* Chrysler Pacifica and Jeep Grand Cherokee suppor thanks to adhintz!

Version 0.5.8 (2019-01-17)
========================
* Open sourced visiond
* Auto-slowdown for upcoming turns
* Chrysler/Jeep/Fiat support thanks to adhintz!
* Honda Civic 2019 support thanks to csouers!
* Improve use of car display in Toyota thanks to arne182!
* No data upload when connected to Android or iOS hotspots and "Enable Upload Over Cellular" setting is off
* EON stops charging when 12V battery drops below 11.8V

Version 0.5.7 (2018-12-06)
========================
* Speed limit from OpenStreetMap added to UI
* Highlight speed limit when speed exceeds road speed limit plus a delta
* Option to limit openpilot max speed to road speed limit plus a delta
* Cadillac ATS support thanks to vntarasov!
* GMC Acadia support thanks to CryptoKylan!
* Decrease GPU power consumption
* NEOSv8 autoupdate

Version 0.5.6 (2018-11-16)
========================
* Refresh settings layout and add feature descriptions
Expand All @@ -7,6 +39,7 @@ Version 0.5.6 (2018-11-16)
* More tuning to Honda positive accelerations
* Reduce brake pump use on Hondas
* Chevrolet Malibu support thanks to tylergets!
* Holden Astra support thanks to AlexHill!

Version 0.5.5 (2018-10-20)
========================
Expand Down
Binary file modified apk/ai.comma.plus.frame.apk
Binary file not shown.
Binary file modified apk/ai.comma.plus.offroad.apk
Binary file not shown.
15 changes: 9 additions & 6 deletions cereal/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
PWD := $(shell pwd)

SRCS := log.capnp car.capnp
SRCS := log.capnp car.capnp ui.capnp

GENS := gen/cpp/car.capnp.c++ gen/cpp/log.capnp.c++
JS := gen/js/car.capnp.js gen/js/log.capnp.js
GENS := gen/cpp/car.capnp.c++ gen/cpp/log.capnp.c++ gen/cpp/ui.capnp.c++
JS := gen/js/car.capnp.js gen/js/log.capnp.js gen/js/ui.capnp.js

UNAME_M ?= $(shell uname -m)

# only generate C++ for docker tests
ifneq ($(OPTEST),1)
GENS += gen/c/car.capnp.c gen/c/log.capnp.c gen/c/include/c++.capnp.h gen/c/include/java.capnp.h
GENS += gen/c/car.capnp.c gen/c/log.capnp.c gen/c/ui.capnp.c gen/c/include/c++.capnp.h gen/c/include/java.capnp.h

ifeq ($(UNAME_M),x86_64)
GENS += gen/java/Car.java gen/java/Log.java
ifneq (, $(shell which capnpc-java))
GENS += gen/java/Car.java gen/java/Log.java
else
$(warning capnpc-java not found, skipping java build)
endif
endif

endif
Expand Down
2 changes: 2 additions & 0 deletions cereal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@

log = capnp.load(os.path.join(CEREAL_PATH, "log.capnp"))
car = capnp.load(os.path.join(CEREAL_PATH, "car.capnp"))
ui = capnp.load(os.path.join(CEREAL_PATH, "ui.capnp"))
tinkla = capnp.load(os.path.join(CEREAL_PATH, "tinkla.capnp"))
8 changes: 8 additions & 0 deletions cereal/car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ struct CarControl {
leadVisible @3: Bool;
visualAlert @4: VisualAlert;
audibleAlert @5: AudibleAlert;
rightLaneVisible @6: Bool;
leftLaneVisible @7: Bool;

enum VisualAlert {
# these are the choices from the Honda
Expand Down Expand Up @@ -323,6 +325,7 @@ struct CarParams {
centerToFront @9 :Float32; # [m] GC distance to front axle
steerRatio @10 :Float32; # [] ratio between front wheels and steering wheel angles
steerRatioRear @11 :Float32; # [] rear steering ratio wrt front steering (usually 0)
eonToFront @54 :Float32; # [m] distance from EON to front wheels

# things we can derive
rotationalInertia @12 :Float32; # [kg*m2] body rotational inertia
Expand All @@ -337,6 +340,9 @@ struct CarParams {
steerKpDEPRECATED @15 :Float32;
steerKiDEPRECATED @16 :Float32;
steerKf @25 :Float32;
steerReactance @51 :Float32;
steerInductance @52 :Float32;
steerResistance @53 :Float32;

# Kp and Ki for the longitudinal control
longitudinalKpBP @36 :List(Float32);
Expand All @@ -353,8 +359,10 @@ struct CarParams {
steerRateCost @40 :Float32; # Lateral MPC cost on steering rate
steerControlType @46 :SteerControlType;
radarOffCan @47 :Bool; # True when radar objects aren't visible on CAN
syncID @55 :Int16; # SyncID is optional

steerActuatorDelay @48 :Float32; # Steering wheel actuator delay in seconds
openpilotLongitudinalControl @50 :Bool; # is openpilot doing the longitudinal control?

enum SteerControlType {
torque @0;
Expand Down
93 changes: 83 additions & 10 deletions cereal/log.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ struct SensorEventData {
iOS @1;
fiber @2;
velodyne @3; # Velodyne IMU
# c3 sensors below
bno055 @4;
lsm6ds3 @5;
bmp280 @6;
bno055 @4; # Bosch accelerometer
lsm6ds3 @5; # accelerometer (c2)
bmp280 @6; # barometer (c2)
mmc3416x @7; # magnetometer (c2)
}
}

Expand Down Expand Up @@ -276,7 +276,8 @@ struct ThermalData {
startedTs @13 :UInt64;

thermalStatus @14 :ThermalStatus;
chargerDisabled @17 :Bool;
chargingError @17 :Bool;
chargingDisabled @18 :Bool;

enum ThermalStatus {
green @0; # all processes run
Expand Down Expand Up @@ -344,6 +345,7 @@ struct LiveCalibrationData {
warpMatrix @0 :List(Float32);
# camera_frame_from_model_frame
warpMatrix2 @5 :List(Float32);
warpMatrixBig @6 :List(Float32);
calStatus @1 :Int8;
calCycle @2 :Int32;
calPerc @3 :Int8;
Expand Down Expand Up @@ -372,6 +374,7 @@ struct Live100Data {
l20MonoTimeDEPRECATED @17 :UInt64;
mdMonoTimeDEPRECATED @18 :UInt64;
planMonoTime @28 :UInt64;
pathPlanMonoTime @50 :UInt64;

state @31 :ControlState;
vEgo @0 :Float32;
Expand All @@ -397,6 +400,9 @@ struct Live100Data {
curvature @37 :Float32; # path curvature from vehicle model
hudLeadDEPRECATED @14 :Int32;
cumLagMs @15 :Float32;
startMonoTime @48 :UInt64;
mapValid @49 :Bool;
forceDecel @51 :Bool;

enabled @19 :Bool;
active @36 :Bool;
Expand All @@ -418,6 +424,10 @@ struct Live100Data {
engageable @41 :Bool; # can OP be engaged?
driverMonitoringOn @43 :Bool;

# maps
vCurvature @46 :Float32;
decelForTurn @47 :Bool;

enum ControlState {
disabled @0;
preEnabled @1;
Expand Down Expand Up @@ -538,12 +548,12 @@ struct Plan {
events @13 :List(Car.CarEvent);

# lateral, 3rd order polynomial
lateralValid @0 :Bool;
dPoly @1 :List(Float32);
laneWidth @11 :Float32;
lateralValidDEPRECATED @0 :Bool;
dPolyDEPRECATED @1 :List(Float32);
laneWidthDEPRECATED @11 :Float32;

# longitudinal
longitudinalValid @2 :Bool;
longitudinalValidDEPRECATED @2 :Bool;
vCruise @16 :Float32;
aCruise @17 :Float32;
vTarget @3 :Float32;
Expand All @@ -552,8 +562,14 @@ struct Plan {
aTargetMinDEPRECATED @4 :Float32;
aTargetMaxDEPRECATED @5 :Float32;
aTarget @18 :Float32;

vStart @26 :Float32;
aStart @27 :Float32;

jerkFactor @6 :Float32;
hasLead @7 :Bool;
hasLeftLaneDEPRECATED @23 :Bool;
hasRightLaneDEPRECATED @24 :Bool;
fcw @8 :Bool;
longitudinalPlanSource @15 :LongitudinalPlanSource;

Expand All @@ -562,6 +578,12 @@ struct Plan {

gpsPlannerActive @19 :Bool;

# maps
vCurvature @21 :Float32;
decelForTurn @22 :Bool;
mapValid @25 :Bool;


struct GpsTrajectory {
x @0 :List(Float32);
y @1 :List(Float32);
Expand All @@ -575,6 +597,25 @@ struct Plan {
}
}

struct PathPlan {
laneWidth @0 :Float32;

dPoly @1 :List(Float32);
cPoly @2 :List(Float32);
cProb @3 :Float32;
lPoly @4 :List(Float32);
lProb @5 :Float32;
rPoly @6 :List(Float32);
rProb @7 :Float32;

mpcAngles @10 :List(Float64);
mpcTimes @11 :List(Float64);

angleSteers @8 :Float32;
valid @9 :Bool;
pPoly @12 :List(Float32);
}

struct LiveLocationData {
status @0 :UInt8;

Expand Down Expand Up @@ -1261,6 +1302,7 @@ struct UbloxGnss {
carrierPhaseStdev @10 :Float32;
# doppler standard deviation in Hz
dopplerStdev @11 :Float32;
sigId @12 :UInt8;

struct TrackingStatus {
# pseudorange valid
Expand Down Expand Up @@ -1567,10 +1609,38 @@ struct LiveParametersData {
}

struct LiveMapData {
valid @0 :Bool;
speedLimitValid @0 :Bool;
speedLimit @1 :Float32;
speedAdvisoryValid @12 :Bool;
speedAdvisory @13 :Float32;
speedLimitAheadValid @14 :Bool;
speedLimitAhead @15 :Float32;
speedLimitAheadDistance @16 :Float32;
curvatureValid @2 :Bool;
curvature @3 :Float32;
wayId @4 :UInt64;
roadX @5 :List(Float32);
roadY @6 :List(Float32);
lastGps @7: GpsLocationData;
roadCurvatureX @8 :List(Float32);
roadCurvature @9 :List(Float32);
distToTurn @10 :Float32;
mapValid @11 :Bool;
}

struct CameraOdometry {
trans @0 :List(Float32); # m/s in device frame
rot @1 :List(Float32); # rad/s in device frame
transStd @2 :List(Float32); # std m/s in device frame
rotStd @3 :List(Float32); # std rad/s in device frame
}

struct KalmanOdometry {
trans @0 :List(Float32); # m/s in device frame
rot @1 :List(Float32); # rad/s in device frame
transStd @2 :List(Float32); # std m/s in device frame
rotStd @3 :List(Float32); # std rad/s in device frame
}

struct Event {
# in nanoseconds?
Expand Down Expand Up @@ -1639,5 +1709,8 @@ struct Event {
boot @60 :Boot;
liveParameters @61 :LiveParametersData;
liveMapData @62 :LiveMapData;
cameraOdometry @63 :CameraOdometry;
pathPlan @64 :PathPlan;
kalmanOdometry @65 :KalmanOdometry;
}
}
Loading