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

Res staged rolling tune csv #73

Merged
merged 150 commits into from
Feb 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
ea86f34
Fixed feed-forward to consider steer_offset
Gernby Nov 6, 2018
0bbc4fc
fixed a small oops on types
Gernby Nov 7, 2018
f6e5830
Testing strategies for zero-crossing
Gernby Nov 8, 2018
f720034
Moved angle stat collection to latcontrol.py
Gernby Nov 8, 2018
ebbfd0b
First version that runs
Gernby Nov 8, 2018
f543fe9
added outbound interface for feed-forward table
Gernby Nov 8, 2018
f475160
First working
Gernby Nov 8, 2018
b6a5180
Added more metrics
Gernby Nov 8, 2018
8f0effd
Adjusted parameter timing
Gernby Nov 8, 2018
d9c8dff
performance tweaks
Gernby Nov 9, 2018
8087e81
Cleanup
Gernby Nov 9, 2018
78095f4
untested tweaks
Gernby Nov 10, 2018
855684c
minor tweaks
Gernby Nov 10, 2018
a8fabe2
many untested changes
Gernby Nov 11, 2018
347d1d1
going the other way with some things...
Gernby Nov 11, 2018
4b4767c
Best yet
Gernby Nov 11, 2018
b12aaf3
cleaned up personalized "stuff"
Gernby Nov 12, 2018
1251809
more cleanup for general use
Gernby Nov 12, 2018
66ec2bc
untested: minor adjustment to further reduce noise
Gernby Nov 12, 2018
f26785e
Fixed defect in desired angle interpolation
Gernby Nov 13, 2018
856f2b1
some cleanup
Gernby Nov 13, 2018
a0c9b2d
reverted change to Ki
Gernby Nov 13, 2018
900b9cd
Reverted changes to manager.py
Gernby Nov 13, 2018
34e239f
Added steering rate consideration to latcontrol
Gernby Nov 13, 2018
52094ba
cleaned up for PR
Gernby Nov 13, 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
e4ed489
GM: remove refactor leftovers (#440)
vntarasov Nov 19, 2018
53c6ca6
Move calibration values (#441)
dek3rr Nov 19, 2018
e32463e
Keep steering on radar fault (#442)
vntarasov Nov 20, 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
527788b
decreased time lapse for angle-based FF adjust
geohot Nov 25, 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
72ed9ef
added angular accelleration limit
Gernby 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
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
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
2d988b9
added actual acceleration to future projected state
Gernby Dec 3, 2018
68e56c8
Adding support for 2018 GMC Acadia Denali (#453)
CryptoKylan Dec 4, 2018
46bf0aa
fixed projected angle error for PIF
Gernby Dec 4, 2018
dbdc422
untested ...
Gernby Dec 4, 2018
a559a7d
added comments
Gernby Dec 5, 2018
e222d48
completely UNtested
Gernby Dec 6, 2018
024870d
GM: Cadillac ATS Coupe 2018 support (#445)
vntarasov Dec 7, 2018
29bea62
Fixed Capitalization + Made CT6 Comment Cleaner (#456)
VirtuallyChris Dec 8, 2018
5c4ae7a
Add Lexus RX450HL as sub to RX450H (#458)
chassdesk Dec 8, 2018
0002cc7
Squashed 'opendbc/' changes from 3f6cd74..e108b6b
Dec 10, 2018
dc331df
Merge opendbc subtree
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
044bd29
untested merge
Gernby Dec 12, 2018
be6bc31
battling shitty git
Gernby Dec 12, 2018
7cb32e9
git is sucking giant monkey balls
Gernby Dec 12, 2018
89418e4
Trying to figure out what git did...
Gernby Dec 12, 2018
37c7196
still trying to un-git myself
Gernby Dec 12, 2018
982c7e0
Finally got it fixed, works awesome!
Gernby Dec 12, 2018
53bdee4
Hopefully not corrupted by git
Gernby Dec 13, 2018
05eae19
hopefully fixed white space corruption
Gernby Dec 13, 2018
f2b706c
working again, hopefully resolved git issue
Gernby Dec 13, 2018
e3c934b
0.5.7 hotfixes
rbiasini Dec 11, 2018
5b9708c
removed hard-coded actuator delay
Gernby Dec 16, 2018
0579016
Fixed steer_actuator_delay for pathplanner
Gernby Dec 16, 2018
067f1bf
hotfix: wait longer in CDP mode before switching to fast charge, so E…
rbiasini Dec 17, 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
343d946
Wiggle vision + resonant FF and error cancellation
Gernby Dec 23, 2018
0b24b41
increased projection factor and decreased accel_limit
Gernby Dec 24, 2018
96dbc51
enhanced torque logic to use accelerated rate
Gernby Dec 25, 2018
58e716f
Read from usb/present instead of usb/online (#484)
braden337 Dec 25, 2018
19db4fe
added smoothing of mpc delta values
Gernby Dec 26, 2018
b204acd
trying different interpolation logic
Gernby Dec 26, 2018
68836c1
added update to cur_state.delta
Gernby Dec 27, 2018
4d2ff10
Clean Up hyundai (#481)
emmertex Dec 27, 2018
057289b
very smooth interpolation between delayed MPC updates
Gernby Dec 27, 2018
a0266f6
increased Kf for Pilot
Gernby Dec 27, 2018
8982228
much better interpolation plus Civic tweaks
Gernby Dec 27, 2018
9dd050f
tiny meaningless changes
Gernby Dec 27, 2018
776d853
Fixed honda interface values
Gernby Dec 28, 2018
ebad223
removed steer_offset from pilot
Gernby Dec 28, 2018
d5c2202
Tweaked steer_offset list
Gernby Dec 28, 2018
45ef704
Reverted a couple resonant parameters
Gernby Dec 28, 2018
218d69c
Enabled error correction
Gernby Dec 28, 2018
0dd9339
changed Kp for some
Gernby Dec 28, 2018
e2ece4b
Merge 0.5.7 into testing-mpc-interp
Gernby Dec 28, 2018
f6c2d0e
Works great... time to clean it up
Gernby Dec 29, 2018
989e888
reverted accelerated_angle_rate for pid updates
Gernby Dec 30, 2018
e42d081
reverted visiond
Gernby Dec 30, 2018
99460c1
Increased error correction
Gernby Dec 31, 2018
b92a2f4
Reverted projection_factor
Gernby Dec 31, 2018
b307f70
fixed projected_angle_steers for future statefixed projected_angle_st…
Gernby Dec 31, 2018
bf6c44d
Added simplified tuning parameters
Gernby Jan 1, 2019
1a36d19
last commit didn't have saved values
Gernby Jan 1, 2019
2789c2a
not working ... lane filtering
Gernby Jan 3, 2019
fc4629c
added calculated steer rate
Gernby Jan 6, 2019
a163a3b
updated toyota carstate
Gernby Jan 6, 2019
784c4d4
add dual-mode steer-rate alternating
Gernby Jan 7, 2019
62a941a
reverted toyota carstate change
Gernby Jan 7, 2019
40713b5
enabled auto-selection of steer_rate
Gernby Jan 7, 2019
7652a56
removed extra variable
Gernby Jan 7, 2019
452968d
enabled 1.0 x error cancellation
Gernby Jan 8, 2019
41de2f6
reverted curstate
Gernby Jan 9, 2019
c113cb8
more like FF-res plus longitudinal camera offset
Gernby Jan 10, 2019
39a44c8
updated max torque valueupdated max torque value
Gernby Jan 10, 2019
5a2e981
good breakthroughs for max_steer and steer noise
Gernby Jan 10, 2019
d176d9e
fixed torque for accords
Gernby Jan 10, 2019
2458133
Fixed typo
Gernby Jan 10, 2019
b371c10
not as good
Gernby Jan 10, 2019
3024e59
removed vibrate
Gernby Jan 10, 2019
8c64240
enabled long camera offset
Gernby Jan 10, 2019
4895768
added new steering parameters
Gernby Jan 10, 2019
30d5006
added new steering parameters
Gernby Jan 10, 2019
73e0aa1
added new steering parameters
Gernby Jan 10, 2019
5f03e03
mall cleanup
Gernby Jan 10, 2019
8d4ffb4
merge
Gernby Jan 10, 2019
0b917e3
added new parameters
Gernby Jan 15, 2019
a07f243
some tuning for accord
Gernby Jan 16, 2019
61bb867
Merge branch 'resonant-interp-revert-curstate'
Gernby Jan 16, 2019
639ac3c
working
Gernby Jan 17, 2019
e93493d
still working
Gernby Jan 17, 2019
d835338
stil working
Gernby Jan 17, 2019
5d433da
working nicely
Gernby Jan 17, 2019
982b0bf
need to test it...
Gernby Jan 18, 2019
7f519f2
added more stages
Gernby Jan 18, 2019
477e03e
removed steer angle offset from steer angleremoved steer angle offset…
Gernby Jan 19, 2019
302f66e
reverted some questionable refactoring
Gernby Jan 20, 2019
5afb851
not working
Gernby Jan 21, 2019
a6a56c9
updated logic and improved rolling tune
Gernby Jan 22, 2019
9082b78
works wellworks well
Gernby Feb 2, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 39 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Also, we have a several thousand people community on [slack](https://slack.comma

<table>
<tr>
<td><a href="https://www.youtube.com/watch?v=9TDi0BHgXyo" title="YouTube" rel="noopener"><img src="https://i.imgur.com/gBTo7yB.png"></a></td>
<td><a href="https://www.youtube.com/watch?v=ICOIin4p70w" title="YouTube" rel="noopener"><img src="https://i.imgur.com/gBTo7yB.png"></a></td>
<td><a href="https://www.youtube.com/watch?v=1zCtj3ckGFo" title="YouTube" rel="noopener"><img src="https://i.imgur.com/gNhhcep.png"></a></td>
<td><a href="https://www.youtube.com/watch?v=Qd2mjkBIRx0" title="YouTube" rel="noopener"><img src="https://i.imgur.com/tFnSexp.png"></a></td>
<td><a href="https://www.youtube.com/watch?v=ju12vlBm59E" title="YouTube" rel="noopener"><img src="https://i.imgur.com/3BKiJVy.png"></a></td>
Expand All @@ -51,53 +51,56 @@ Also, we have a several thousand people community on [slack](https://slack.comma
Hardware
------

Right now openpilot supports the [EON Dashcam DevKit](https://comma.ai/shop/products/eon-dashcam-devkit). We'd like to support other platforms as well.
At the moment openpilot supports the [EON Dashcam DevKit](https://comma.ai/shop/products/eon-dashcam-devkit). A [panda](https://shop.comma.ai/products/panda-obd-ii-dongle) and a [giraffe](https://comma.ai/shop/products/giraffe/) are recommended tools to interface the EON with the car. We'd like to support other platforms as well.

Install openpilot on a neo device by entering ``https://openpilot.comma.ai`` during NEOS setup.

Supported Cars
------

| Make | Model | Supported Package | Lateral | Longitudinal | No Accel Below | No Steer Below | Giraffe |
| ---------------------| ------------------------| ---------------------| --------| ---------------| -----------------| ---------------|-------------------|
| Acura | ILX 2016-17 | AcuraWatch Plus | Yes | Yes | 25mph<sup>1</sup>| 25mph | Nidec |
| Acura | RDX 2018 | AcuraWatch Plus | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Chevrolet<sup>3</sup>| Malibu 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| Chevrolet<sup>3</sup>| Volt 2017-18 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| Honda | Accord 2018 | All | Yes | Stock | 0mph | 3mph | Bosch |
| Honda | Civic 2016-18 | Honda Sensing | Yes | Yes | 0mph | 12mph | Nidec |
| Honda | Civic 2017-18 *(Hatch)* | Honda Sensing | Yes | Stock | 0mph | 12mph | Bosch |
| Honda | CR-V 2015-16 | Touring | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Honda | CR-V 2017-18 | Honda Sensing | Yes | Stock | 0mph | 12mph | Bosch |
| Honda | Odyssey 2017-19 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 0mph | Inverted Nidec |
| Honda | Pilot 2016-18 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Honda | Pilot 2019 | All | Yes | Yes | 25mph<sup>1</sup>| 12mph | Inverted Nidec |
| Honda | Ridgeline 2017-18 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Hyundai | Santa Fe 2019 | All | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
| Hyundai | Elantra 2017 | SCC + LKAS | Yes | Stock | 19mph | 34mph | Custom<sup>6</sup>|
| Hyundai | Genesis 2018 | All | Yes | Stock | 19mph | 34mph | Custom<sup>6</sup>|
| Kia | Sorento 2018 | All | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
| Kia | Stinger 2018 | SCC + LKAS | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
| Lexus | RX Hybrid 2016-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Camry 2018<sup>4</sup> | All | Yes | Stock | 0mph<sup>5</sup> | 0mph | Toyota |
| Toyota | C-HR 2017-18<sup>4</sup>| All | Yes | Stock | 0mph | 0mph | Toyota |
| Toyota | Corolla 2017-18 | All | Yes | Yes<sup>2</sup>| 20mph | 0mph | Toyota |
| Toyota | Highlander 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Highlander Hybrid 2018 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Prius 2016 | TSS-P | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Prius 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Prius Prime 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Rav4 2016 | TSS-P | Yes | Yes<sup>2</sup>| 20mph | 0mph | Toyota |
| Toyota | Rav4 2017-18 | All | Yes | Yes<sup>2</sup>| 20mph | 0mph | Toyota |
| Toyota | Rav4 Hybrid 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Make | Model | Supported Package | Lateral | Longitudinal | No Accel Below | No Steer Below | Giraffe |
| ---------------------| -------------------------| ---------------------| --------| ---------------| -----------------| ---------------|-------------------|
| Acura | ILX 2016-17 | AcuraWatch Plus | Yes | Yes | 25mph<sup>1</sup>| 25mph | Nidec |
| Acura | RDX 2018 | AcuraWatch Plus | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Chevrolet<sup>3</sup>| Malibu 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| Chevrolet<sup>3</sup>| Volt 2017-18 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| Cadillac<sup>3</sup> | ATS 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| GMC<sup>3</sup> | Acadia Denali 2018 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| Holden<sup>3</sup> | Astra 2017 | Adaptive Cruise | Yes | Yes | 0mph | 7mph | Custom<sup>7</sup>|
| Honda | Accord 2018 | All | Yes | Stock | 0mph | 3mph | Bosch |
| Honda | Civic Sedan/Coupe 2016-18| Honda Sensing | Yes | Yes | 0mph | 12mph | Nidec |
| Honda | Civic Hatchback 2017-18 | Honda Sensing | Yes | Stock | 0mph | 12mph | Bosch |
| Honda | CR-V 2015-16 | Touring | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Honda | CR-V 2017-18 | Honda Sensing | Yes | Stock | 0mph | 12mph | Bosch |
| Honda | Odyssey 2017-19 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 0mph | Inverted Nidec |
| Honda | Pilot 2016-18 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Honda | Pilot 2019 | All | Yes | Yes | 25mph<sup>1</sup>| 12mph | Inverted Nidec |
| Honda | Ridgeline 2017-19 | Honda Sensing | Yes | Yes | 25mph<sup>1</sup>| 12mph | Nidec |
| Hyundai | Santa Fe 2019 | All | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
| Hyundai | Elantra 2017 | SCC + LKAS | Yes | Stock | 19mph | 34mph | Custom<sup>6</sup>|
| Hyundai | Genesis 2018 | All | Yes | Stock | 19mph | 34mph | Custom<sup>6</sup>|
| Kia | Sorento 2018 | All | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
| Kia | Stinger 2018 | SCC + LKAS | Yes | Stock | 0mph | 0mph | Custom<sup>6</sup>|
| Lexus | RX Hybrid 2016-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Camry 2018<sup>4</sup> | All | Yes | Stock | 0mph<sup>5</sup> | 0mph | Toyota |
| Toyota | C-HR 2017-18<sup>4</sup> | All | Yes | Stock | 0mph | 0mph | Toyota |
| Toyota | Corolla 2017-18 | All | Yes | Yes<sup>2</sup>| 20mph | 0mph | Toyota |
| Toyota | Highlander 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Highlander Hybrid 2018 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Prius 2016 | TSS-P | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Prius 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Prius Prime 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |
| Toyota | Rav4 2016 | TSS-P | Yes | Yes<sup>2</sup>| 20mph | 0mph | Toyota |
| Toyota | Rav4 2017-18 | All | Yes | Yes<sup>2</sup>| 20mph | 0mph | Toyota |
| Toyota | Rav4 Hybrid 2017-18 | All | Yes | Yes<sup>2</sup>| 0mph | 0mph | Toyota |

<sup>1</sup>[Comma Pedal](https://community.comma.ai/wiki/index.php/Comma_Pedal) is used to provide stop-and-go capability to some of the openpilot-supported cars that don't currently support stop-and-go. Here is how to [build a Comma Pedal](https://medium.com/@jfrux/comma-pedal-building-with-macrofab-6328bea791e8). ***NOTE: The Comma Pedal is not officially supported by [comma.ai](https://comma.ai)***
<sup>2</sup>When disconnecting the Driver Support Unit (DSU), otherwise longitudinal control is stock ACC. For DSU locations, see [Toyota Wiki page](https://community.comma.ai/wiki/index.php/Toyota)
<sup>3</sup>[GM installation guide](https://zoneos.com/volt/).
<sup>4</sup>It needs an extra 120Ohm resistor ([pic1](https://i.imgur.com/CmdKtTP.jpg), [pic2](https://i.imgur.com/s2etUo6.jpg)) on bus 3 and giraffe switches set to 01X1 (11X1 for stock LKAS), where X depends on if you have the [comma power](https://comma.ai/shop/products/power/).
<sup>5</sup>28mph for Camry 4CYL L, 4CYL LE and 4CYL SE which don't have Full-Speed Range Dynamic Radar Cruise Control.
<sup>6</sup>Open sourced [Hyundai Giraffe](https://github.com/commaai/neo/tree/master/giraffe/hyundai) is designed ofor the 2019 Sante Fe; pinout may differ for other Hyundais. <br />
<sup>7</sup>Community built Giraffe, find more information here, [GM Giraffe](https://zoneos.com/shop/) <br />
<sup>6</sup>Open sourced [Hyundai Giraffe](https://github.com/commaai/neo/tree/master/giraffe/hyundai) is designed ofor the 2019 Sante Fe; pinout may differ for other Hyundais.
<sup>7</sup>Community built Giraffe, find more information here, [GM Giraffe](https://zoneos.com/shop/).

Community Maintained Cars
------
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
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 +17,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.offroad.apk
Binary file not shown.
7 changes: 5 additions & 2 deletions cereal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ GENS := gen/cpp/car.capnp.c++ gen/cpp/log.capnp.c++
JS := gen/js/car.capnp.js gen/js/log.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

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
6 changes: 6 additions & 0 deletions cereal/car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,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 +338,10 @@ 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 @@ -355,6 +360,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
19 changes: 17 additions & 2 deletions cereal/log.capnp
Original file line number Diff line number Diff line change
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 @@ -562,6 +564,10 @@ struct Plan {

gpsPlannerActive @19 :Bool;

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

struct GpsTrajectory {
x @0 :List(Float32);
y @1 :List(Float32);
Expand Down Expand Up @@ -1567,8 +1573,17 @@ 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;
}


Expand Down
3 changes: 3 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion common/transformations/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_model_height_transform(camera_frame_from_road_frame, height):

# camera_frame_from_model_frame aka 'warp matrix'
# was: calibration.h/CalibrationTransform
def get_camera_frame_from_model_frame(camera_frame_from_road_frame, height):
def get_camera_frame_from_model_frame(camera_frame_from_road_frame, height=model_height):
vp = vp_from_ke(camera_frame_from_road_frame)

model_camera_from_model_frame = np.array([
Expand Down
Binary file modified installer/updater/updater
Binary file not shown.
10 changes: 5 additions & 5 deletions launch_chffrplus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ fi

function launch {
# apply update
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
git reset --hard @{u} &&
git clean -xdf &&
exec "${BASH_SOURCE[0]}"
fi
#if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
# git reset --hard @{u} &&
# git clean -xdf &&
# exec "${BASH_SOURCE[0]}"
#fi

# no cpu rationing for now
echo 0-3 > /dev/cpuset/background/cpus
Expand Down
Loading