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 #72

Merged
merged 935 commits into from
Feb 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
935 commits
Select commit Hold shift + click to select a range
2ad48e2
PCC follow: syntax fixes
geohot Nov 16, 2018
063f38f
PCC follow: I broke it. Don't use this revision.
geohot Nov 17, 2018
51ba5c4
PCC follow - I don't know man, maybe this will fix it?
Nov 17, 2018
d696297
PCC follow: reduce accel and jerk in empty lanes
Nov 17, 2018
39cbcc7
PCC follow: ping pong tweaks
geohot Nov 17, 2018
f003eb2
PCC follow: make jerk depdent on follow distance
Nov 17, 2018
7db68a9
Syntax fixes
Nov 17, 2018
223581d
PCC follow jerk fiddling
Nov 17, 2018
3134bce
Merge remote-tracking branch 'origin' into Feed-Forward_Steer_Offset
Gernby Nov 17, 2018
07bbadc
Fixed merge
Gernby Nov 17, 2018
d04f868
Testing approach when desired angle close to actual
Gernby Nov 17, 2018
8b7f89f
PCC follow: good enough to drive. Needs more brake though.
geohot Nov 17, 2018
5cf3dda
PCC follow: braking tweaks
geohot Nov 17, 2018
3d117fc
Merge branch 'bog_pedal' into tesla_pedal
Nov 17, 2018
f34a884
Slightly less strict pedal detection
Nov 17, 2018
533cd78
Simplify pedal missing logic
Nov 17, 2018
beb497d
Merge pull request #14 from AllWashedOut/tesla_pedal
BogGyver Nov 17, 2018
e4ed489
GM: remove refactor leftovers (#440)
vntarasov Nov 19, 2018
53c6ca6
Move calibration values (#441)
dek3rr Nov 19, 2018
6c1f0e7
PCC follow: Tweaks
Nov 19, 2018
0b6c5e7
Reduce harsh sudden acceleration when lead is lost
geohot Nov 19, 2018
ce541ef
PCC follow: brake jerk based on relative speed (as originally intended)
Nov 19, 2018
7c094a2
PCC: cleanup
Nov 19, 2018
fef38cf
Be unsafe
SippieCup Nov 19, 2018
5fe880f
PCC follow: reduce jerk
geohot Nov 19, 2018
910d4f6
PCC Follow: TODO notes of plans to reduce bucking
Nov 19, 2018
8c6a621
PCC Follow: merge and TODOs
Nov 19, 2018
f3f64e8
soome messages to display lanes and status on IC
BogGyver Nov 19, 2018
46154cb
Pedal Follow: Limit jerk if lead was just lost recently
Nov 19, 2018
4acde72
Pedal Follow: syntax fix
Nov 19, 2018
885f7f0
PCC: reduce max accel
Nov 19, 2018
a719fd6
can measage fixes
BogGyver Nov 19, 2018
359092b
PCC follow: accel reduction
geohot Nov 20, 2018
799fb78
Add diag info when fingerprinting
bitshop Nov 20, 2018
e9bda6f
Merge remote-tracking branch 'origin/tesla_pedal' into tesla_pedal_055
bitshop Nov 20, 2018
64a5a72
Merged fix for straight line torque calculation
Gernby Nov 20, 2018
10857e1
fix DAS_lssState to LKAS (was Fault)
BogGyver Nov 20, 2018
48bfe06
Attention to the road allert will not generate sound when green, only…
BogGyver Nov 20, 2018
fd6d95d
Merge remote-tracking branch 'comma/devel' 0.5.6
bitshop Nov 20, 2018
be9c3d0
Fix merge / change from comma
bitshop Nov 20, 2018
fa9b649
Merge remote-tracking branch 'origin/tesla_pedal' into tesla_pedal_056
bitshop Nov 20, 2018
e32463e
Keep steering on radar fault (#442)
vntarasov Nov 20, 2018
41b34e3
Correct indentation
bitshop Nov 20, 2018
fd6497b
speed limit and more DAS can messages
BogGyver Nov 20, 2018
b194c81
Merge pull request #19 from BogGyver/tesla_pedal_056
BogGyver Nov 20, 2018
7ec1cc2
display MPH speed limit on IC
BogGyver Nov 20, 2018
8d4ef89
fixes units for speed limit
BogGyver Nov 20, 2018
0345e23
switched to ACTIVE_RESTRICTED the AP status when manual steering
BogGyver Nov 20, 2018
39455c3
switched to main production servers for Overpass API
BogGyver Nov 20, 2018
9308586
more DAS messages emulated!
BogGyver Nov 20, 2018
db742b4
PCC Follow: more accel/jerk reduction
geohot Nov 21, 2018
c9dd7fe
Add initial support for Holden/Opel Astra BK (#431)
AlexHill Nov 21, 2018
6ec0d23
Added Astra support to README and RELEASE notes (#443)
rbiasini Nov 21, 2018
cec70b7
trying rate-based feed-forward
geohot Nov 24, 2018
33e44f6
added self-tuning parms for rate and angle FF
geohot Nov 25, 2018
3f9b21e
fixed trim logic, and persisted to flash
geohot Nov 25, 2018
60f9e85
working amazingly well
geohot Nov 25, 2018
80a080d
Merge branch 'bog_pedal' into tesla_pedal (OP 0.5.6)
Nov 25, 2018
527788b
decreased time lapse for angle-based FF adjust
geohot Nov 25, 2018
036b16c
PCC Follow: tweaks possible thanks to improved visual radar
Nov 26, 2018
a212957
PCC follow: more conservative if a very slow lead car is spotted
Nov 26, 2018
660f5c2
PCC Follow: Limit vrel based on distance to lead
Nov 27, 2018
74ec7c8
PCC comments
Nov 27, 2018
22d0a32
PCC Follow: simplify visual radar correction
Nov 27, 2018
c70e60e
many tweaks, self-tuning is a bitch
Gernby Nov 27, 2018
aa2bc77
simulteneous dual mode feedforward working very well
Gernby Nov 27, 2018
5760af2
Tweak visual radar to return some sensitivity
Nov 27, 2018
b27b589
PCC Follow: reduce jerk
Nov 27, 2018
72ed9ef
added angular accelleration limit
Gernby Nov 27, 2018
bb5a1d5
PCC Follow: trying out a naive strategy that will probably suck
Nov 27, 2018
d21a39a
PCC Follow: double down on naive strategy
Nov 27, 2018
e78de2a
PCC Follow: new continuous speed algorithm
Nov 27, 2018
fcc3c3e
added super awesome angular accel limit
Gernby Nov 28, 2018
1a839ba
non-specific save
Gernby Nov 28, 2018
4ead166
switching directions again
Gernby Nov 28, 2018
9f89e4d
oops
Gernby Nov 28, 2018
29bbaef
PCC syntax fix
geohot Nov 29, 2018
b658484
ugly code with amazing results
Gernby Nov 29, 2018
d4acc24
awesome, but untested after some cleanup
Gernby Nov 30, 2018
dbe6835
more cleanup
Gernby Nov 30, 2018
c186f5c
cleanup of the cleanup? Need to test
Gernby Nov 30, 2018
5ed48fd
works amazingly well ... big O face
Gernby Nov 30, 2018
d820de2
cleanup
Gernby Nov 30, 2018
1aa2b75
I wish git was batter for cleanup
Gernby Nov 30, 2018
9d76070
Honda Nidec: avoid giraffe setting alert when car is turned off (#449)
rbiasini Nov 30, 2018
61f7022
PCC Follow: More decel, remove Experimental mode
geohot Nov 30, 2018
86579cd
PCC Follow: simplify logic for decel jerk
geohot Dec 1, 2018
99f6f12
more work towards IC integration
BogGyver Dec 1, 2018
559593b
hopefully proper merge of merged fixes of merge
Gernby Dec 2, 2018
8837355
fixed an oops for non-bosch hondas
Gernby Dec 2, 2018
68c9a0a
added steer rate to future state calculation
Gernby Dec 2, 2018
e09b8a5
PCC Follow: reduce brake jerk at distance
geohot Dec 3, 2018
1bb966d
PCC Follow: adjust jerk upon losing lead
Dec 3, 2018
561cdd0
PCC: Fix _sec_til_collision calculation
Dec 3, 2018
17fd2f1
hooks for tesla radar integration
BogGyver Dec 3, 2018
e60f0ea
Merge branch 'tesla_pedal' of https://github.com/AllWashedOut/openpil…
Dec 3, 2018
4452215
use third position of tri-state to turn EON off except when we displa…
BogGyver Dec 3, 2018
79c3afb
tweaks for position 3 of 3-state switch
BogGyver Dec 3, 2018
621b9ca
Merge pull request #15 from AllWashedOut/tesla_pedal
BogGyver Dec 3, 2018
2d988b9
added actual acceleration to future projected state
Gernby Dec 3, 2018
3e2649a
changes for lanes and objects can message
BogGyver Dec 3, 2018
05623b8
PCC: tweaks to braking jerk and decel
geohot Dec 4, 2018
904bd6c
CAN and UI tweaks
BogGyver Dec 4, 2018
d130770
PCC: use _is_present helper more
Dec 4, 2018
876a112
PCC Follow: rewrite desired speed rules
Dec 4, 2018
68e56c8
Adding support for 2018 GMC Acadia Denali (#453)
CryptoKylan Dec 4, 2018
3280002
PCC follow: adjustments
geohot Dec 4, 2018
46bf0aa
fixed projected angle error for PIF
Gernby Dec 4, 2018
dbdc422
untested ...
Gernby Dec 4, 2018
eac7129
Merge branch 'bog_pedal' into tesla_pedal
Dec 4, 2018
5094d97
more mods for tesla radar and fixing overall the forwarding hook
BogGyver Dec 5, 2018
0b95f41
PCC: remove unused vars
Dec 5, 2018
2b6cdbc
Remove expiermental PCC
Dec 5, 2018
9fed713
Remove longitudinal 'off' UI buttons
Dec 5, 2018
a559a7d
added comments
Gernby Dec 5, 2018
75497e8
edit GTW_carConfig can that is forwarded to radar
BogGyver Dec 5, 2018
6b9270a
fix bit mismatch in GTW_carConfig for radar
BogGyver Dec 5, 2018
a25c68a
PCC FOllow: full brake sooner
geohot Dec 5, 2018
e222d48
completely UNtested
Gernby Dec 6, 2018
bbbc186
Be unsafe
SippieCup Nov 19, 2018
25eb0c3
Merge remote-tracking branch 'Gernby/Feed-Forward_Steer_Offset' into …
SippieCup Dec 6, 2018
6108071
Merge remote-tracking branch 'origin/tesla_devel' into tesla_devel
SippieCup Dec 6, 2018
d32b7d4
IC tweaks
BogGyver Dec 6, 2018
d2b2d4b
Merge remote-tracking branch 'Gernby/Feed-Forward_Steer_Offset' into …
SippieCup Dec 6, 2018
7c70b05
stop steering a 0mph
BogGyver Dec 6, 2018
074563a
changed steerKf from 0.00006 to 0.003 for new gernby ff model
BogGyver Dec 6, 2018
98027ec
Merge remote-tracking branch 'BogGyver/tesla_pedal' into tesla_devel
SippieCup Dec 6, 2018
48df871
changed speedKf back to 0.00006
BogGyver Dec 7, 2018
3499d71
Revert back to 0.00006
SippieCup Dec 7, 2018
024870d
GM: Cadillac ATS Coupe 2018 support (#445)
vntarasov Dec 7, 2018
cab492f
Removed logos
SippieCup Dec 7, 2018
06c88c9
Gernby/Feed-Forward-Accel-Rate refactored for tesla
SippieCup Dec 7, 2018
b3127be
Revert "Gernby/Feed-Forward-Accel-Rate refactored for tesla"
SippieCup Dec 7, 2018
e478620
Update sterrrateCost
SippieCup Dec 7, 2018
57c379a
steerRateCost = 2.0
BogGyver Dec 7, 2018
00214f4
Merge branch 'comma_devel' into tesla_devel
Dec 7, 2018
de425b9
Merge remote-tracking branch 'JeanKalud/tesla_devel' into tesla_devel
SippieCup Dec 7, 2018
29bea62
Fixed Capitalization + Made CT6 Comment Cleaner (#456)
VirtuallyChris Dec 8, 2018
bf6db6d
merged accel and rate consideration for tesla steering
Gernby Dec 8, 2018
499909a
Merge branch 'tesla/tesla_pedal' into tesla_devel
SippieCup Dec 8, 2018
a05e480
Merge pull request #20 from Gernby/tesla/tesla_pedal
SippieCup Dec 8, 2018
5c4ae7a
Add Lexus RX450HL as sub to RX450H (#458)
chassdesk Dec 8, 2018
073418f
Added dual mode feed-forward for angle-type steering
Gernby Dec 8, 2018
d89d7db
Merge remote-tracking branch 'Gernby/tesla_pedal' into tesla_devel
SippieCup Dec 8, 2018
21076a0
Merge remote-tracking branch 'Gernby/tesla_pedal' into tesla_pedal
SippieCup Dec 8, 2018
69c76a1
changes to make ALCA work with the Gernby latcontrol.py
BogGyver Dec 10, 2018
868a199
remove latcontrol smoothing to enable ALCA
BogGyver Dec 10, 2018
6639107
latcobtrol from Gernby removal
BogGyver Dec 10, 2018
dc331df
Merge opendbc subtree
Dec 10, 2018
0002cc7
Squashed 'opendbc/' changes from 3f6cd74..e108b6b
Dec 10, 2018
30ec405
Squashed 'pyextra/' changes from fb152de..8cc1594
Dec 10, 2018
573a691
Merge pyextra subtree
Dec 10, 2018
210db68
openpilot v0.5.7 release
Dec 10, 2018
82f1242
latest working dev code
BogGyver Dec 12, 2018
828f315
Updated PCC
SippieCup Dec 13, 2018
e3c934b
0.5.7 hotfixes
rbiasini Dec 11, 2018
e8387db
Merge remote-tracking branch 'commaai/devel' into tesla_devel
SippieCup Dec 13, 2018
f919770
Merge remote-tracking branch 'commaai/devel'
SippieCup Dec 13, 2018
62e9cac
Add long control flag for tesla
SippieCup Dec 13, 2018
ad78e25
Integrated Gernby smoothing of mpc with ALCA; Panda changes for radar
BogGyver Dec 14, 2018
6d811e9
bug fix in ALCA for Gernby
BogGyver Dec 14, 2018
592a0aa
Merge branch 'tesla_pedal' into tesla_devel
SippieCup Dec 14, 2018
db7e043
Remove speed limit UI element (available on IC)
SippieCup Dec 16, 2018
067f1bf
hotfix: wait longer in CDP mode before switching to fast charge, so E…
rbiasini Dec 17, 2018
b2ddcf6
Revert "Be unsafe"
SippieCup Nov 19, 2018
a809e3c
Revert "Remove speed limit UI element (available on IC)"
SippieCup Dec 16, 2018
6697427
Merge remote-tracking branch 'BogGyver/tesla_pedal-0.5.7' into tesla_…
SippieCup Dec 19, 2018
19fd583
latest safety changes for radar
BogGyver Dec 19, 2018
bb3ebcb
first round of fixes for speedlimit; not tested
BogGyver Dec 19, 2018
b0f8a78
final fixes for speed
BogGyver Dec 19, 2018
55c35ab
final(?) fix for kph speed limit
BogGyver Dec 19, 2018
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
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
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
d21c659
Squashed 'panda/' changes from 293fa33..9ee6285
Jan 23, 2019
ece9cf9
Merge panda subtree
Jan 23, 2019
ea35a00
Squashed 'opendbc/' changes from e108b6b..b632acf
Jan 23, 2019
f364a3e
Merge opendbc subtree
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
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
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
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
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
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
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ selfdrive/test/tests/plant/out
/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:
- /.*/
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"files.associations": {
"algorithm": "cpp",
"chrono": "cpp",
"limits": "cpp"
}
}
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
125 changes: 65 additions & 60 deletions README.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
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!
* Improved 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 +27,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
1 change: 1 addition & 0 deletions cereal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@

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"))
3 changes: 3 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 @@ -355,6 +357,7 @@ struct CarParams {
radarOffCan @47 :Bool; # True when radar objects aren't visible on CAN

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

enum SteerControlType {
torque @0;
Expand Down
44 changes: 38 additions & 6 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 @@ -397,6 +399,8 @@ struct Live100Data {
curvature @37 :Float32; # path curvature from vehicle model
hudLeadDEPRECATED @14 :Int32;
cumLagMs @15 :Float32;
startMonoTime @48 :UInt64;
mapValid @49 :Bool;

enabled @19 :Bool;
active @36 :Bool;
Expand All @@ -418,6 +422,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 @@ -554,6 +562,8 @@ struct Plan {
aTarget @18 :Float32;
jerkFactor @6 :Float32;
hasLead @7 :Bool;
hasLeftLane @23 :Bool;
hasRightLane @24 :Bool;
fcw @8 :Bool;
longitudinalPlanSource @15 :LongitudinalPlanSource;

Expand All @@ -562,6 +572,11 @@ 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 Down Expand Up @@ -1567,10 +1582,26 @@ struct LiveParametersData {
}

struct LiveMapData {
valid @0 :Bool;
speedLimitValid @0 :Bool;
speedLimit @1 :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 Event {
# in nanoseconds?
Expand Down Expand Up @@ -1639,5 +1670,6 @@ struct Event {
boot @60 :Boot;
liveParameters @61 :LiveParametersData;
liveMapData @62 :LiveMapData;
cameraOdometry @63 :CameraOdometry;
}
}
64 changes: 64 additions & 0 deletions cereal/ui.capnp
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
using Cxx = import "./include/c++.capnp";
$Cxx.namespace("cereal");

using Java = import "./include/java.capnp";
$Java.package("ai.comma.openpilot.cereal");
$Java.outerClassname("Ui");

using Car = import "car.capnp";

@0xce6ca45dddcd5317;

struct UIButtonInfo {
# button ID 0..5
btnId @0 :Int8;
# internal button name
btnName @1 :Text;
# display label for button (3 chars)
btnLabel @2 :Text;
# buttons status: 0 = DISABLED, 1 = AVAILABLE, 2 = ENABLED, 3 = WARNING, 9 = NOT AVAILABLE
btnStatus @3 :Int16;
# small font label shows below the main label, max 7 chars
btnLabel2 @4 :Text;
}

struct UIButtonStatus {
# button ID 0..5
btnId @0 :Int8;
# buttons status: 0 = DISABLED, 1 = AVAILABLE, 2 = ENABLED, 3 = WARNING, 9 = NOT AVAILABLE
btnStatus @1 :Int16;
}

struct UICustomAlert {
caStatus @0 :Int8;
caText @1 :Text;
}

struct UISetCar {
icCarFolder @0 :Text;
icCarName @1 :Text;
}

struct UIPlaySound {
sndSound @0 :Int8;
}

struct UIUpdate {
uiDoUpdate @0 :Int8;
uiStatus @1 :Int8;
uiCanDisplayMessage @2 :Int8;
}

#struct UIEvent {
# # in nanoseconds?
# logMonoTime @0 :UInt64;
#
# union {
# uiButtonInfo @1 :UIButtonInfo;
# uiCustomAlert @2 :UICustomAlert;
# uiSetCar @3 :UISetCar;
# uiButtonStatus @4 :UIButtonStatus;
# uiUpdate @5 :UIUpdate;
# uiPlaySound @6 :UIPlaySound;
# }
#}
2 changes: 1 addition & 1 deletion common/fingerprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ def eliminate_incompatible_cars(msg, candidate_cars):

def all_known_cars():
"""Returns a list of all known car strings."""
return _FINGERPRINTS.keys()
return _FINGERPRINTS.keys()
5 changes: 4 additions & 1 deletion common/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class UnknownKeyName(Exception):
"IsUploadVideoOverCellularEnabled": TxType.PERSISTENT,
"IsDriverMonitoringEnabled": TxType.PERSISTENT,
"IsGeofenceEnabled": TxType.PERSISTENT,
"SpeedLimitOffset": TxType.PERSISTENT,
# written: visiond
# read: visiond, controlsd
"CalibrationParams": TxType.PERSISTENT,
Expand All @@ -74,6 +75,8 @@ class UnknownKeyName(Exception):
"DoUninstall": TxType.CLEAR_ON_MANAGER_START,
"ShouldDoUpdate": TxType.CLEAR_ON_MANAGER_START,
"IsUpdateAvailable": TxType.PERSISTENT,
"LongitudinalControl": TxType.PERSISTENT,
"LimitSetSpeed": TxType.PERSISTENT,

"RecordFront": TxType.PERSISTENT,
}
Expand Down Expand Up @@ -355,4 +358,4 @@ def put(self, key, dat):

# Test multiprocess:
# seq 0 100000 | xargs -P20 -I{} python common/params.py DongleId {} && sleep 0.05
# while python common/params.py DongleId; do sleep 0.05; done
# while python common/params.py DongleId; do sleep 0.05; done
Loading