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

merge release2 first #92

Merged
merged 796 commits into from
Feb 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
796 commits
Select commit Hold shift + click to select a range
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
8ec3510
Add Blindspot to be 0
arne182 Dec 11, 2018
389348d
Add blindspot
arne182 Dec 11, 2018
f7410b5
Merge pull request #50 from arne182/gmalca
arne182 Dec 11, 2018
e3c934b
0.5.7 hotfixes
rbiasini Dec 11, 2018
50294c7
Toyota C-HR New Zealand signature
arne182 Dec 16, 2018
067f1bf
hotfix: wait longer in CDP mode before switching to fast charge, so E…
rbiasini Dec 17, 2018
35e4f01
Add Barriers, right and left lines
arne182 Dec 17, 2018
7383be9
Add Barriers, right and left lines
arne182 Dec 17, 2018
2e53587
Add Barriers, right and left lines
arne182 Dec 17, 2018
7fc7146
Add Barriers, right and left lines
arne182 Dec 17, 2018
378ad62
Add Barriers, right and left lines
arne182 Dec 17, 2018
a3d403d
Add Lexus Support
arne182 Dec 17, 2018
6e9d80f
Add Lexus Support
arne182 Dec 17, 2018
9ce3045
Merge pull request #470 from commaai/devel
rbiasini Dec 18, 2018
bdd2335
0.5.7 Merge branch 'release2' of git://github.com/commaai/openpilot i…
arne182 Dec 18, 2018
d431159
Remove Comma Speed limit
arne182 Dec 18, 2018
3ee497f
Include Speed limit in BB
arne182 Dec 18, 2018
192bb2f
Default alca mode to wifey for GM
arne182 Dec 18, 2018
b54ceb8
From my tests 2c is 1c and 38 is 08 for first 2 seconds
arne182 Dec 18, 2018
e28950d
Move max speed over to left
arne182 Dec 18, 2018
b9b41af
Debug print
arne182 Dec 19, 2018
99feac6
move max speed to the left attempt 2
arne182 Dec 19, 2018
cd42383
Move Max Speed to left Attempt 3
arne182 Dec 19, 2018
d824f51
Has lane lines?
arne182 Dec 20, 2018
850f4b5
Has lane?
arne182 Dec 20, 2018
37c2599
Default l prob and r prob to 0
arne182 Dec 20, 2018
00908a1
Has lane lines?
arne182 Dec 20, 2018
59be4ee
Update HUD control
arne182 Dec 20, 2018
b579448
Correct spelling
arne182 Dec 20, 2018
b8aa0e4
Add lines from model
arne182 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
1f94559
fix typo
arne182 Dec 21, 2018
36ea931
revert
arne182 Dec 21, 2018
521bcb6
Try again with correct spelling
arne182 Dec 21, 2018
f2d34ed
make global
arne182 Dec 21, 2018
3649c59
CS lines
arne182 Dec 21, 2018
9b64ac3
Add right and left lines in interface
arne182 Dec 21, 2018
1cf4043
Get values from interface
arne182 Dec 21, 2018
c53113b
Update correct names
arne182 Dec 21, 2018
2d9239a
Swap
arne182 Dec 21, 2018
eff2861
Add 1
arne182 Dec 21, 2018
ab2b431
Reverse on off for lane lines
arne182 Dec 22, 2018
12192aa
Lead visable to cc
arne182 Dec 22, 2018
b47b289
Enable mini car
arne182 Dec 22, 2018
49ecbdb
Add lead if not enabled
arne182 Dec 22, 2018
afabd89
Add some logic to enable engage when no lead car
arne182 Dec 22, 2018
674eedd
Add speed condition to minicar
arne182 Dec 22, 2018
de0b072
Remove debugging
arne182 Dec 23, 2018
7d19640
Merge pull request #53 from arne182/minicar
arne182 Dec 23, 2018
9441815
Reduce spinner size
arne182 Dec 23, 2018
7ce89a6
Move spinner to top right
arne182 Dec 23, 2018
9060532
Add right and leftLaneDepart
arne182 Dec 23, 2018
cbdb42f
Add left and rightLaneDepart
arne182 Dec 23, 2018
f3e2794
Add left and rightLaneDepart
arne182 Dec 23, 2018
2d2797b
Add left and rightLaneDepart
arne182 Dec 23, 2018
f39294c
Move LKAS Hud to can2
arne182 Dec 23, 2018
9ad8a6e
Fix rouge if statement
arne182 Dec 23, 2018
56bcad2
Add lane departure warning logic
arne182 Dec 23, 2018
83003a1
Add default barriers to 0 if no lane departure
arne182 Dec 23, 2018
9cc554e
Add GM Spinner
arne182 Dec 23, 2018
6296089
Add GM Spinner
arne182 Dec 23, 2018
96929bb
Correct typo
arne182 Dec 23, 2018
3d58582
Read from can 2
arne182 Dec 23, 2018
7d00610
debug
arne182 Dec 23, 2018
4232a24
Remove forwarded lda messages
arne182 Dec 24, 2018
2b02340
Remove forwarded lda
arne182 Dec 24, 2018
f650398
Remove forwarded lda
arne182 Dec 24, 2018
3c41aa6
Rename variables
arne182 Dec 24, 2018
2135bba
Tuning values for highlander from @BoneE
arne182 Dec 24, 2018
864da92
Update pathplanner.py
arne182 Dec 25, 2018
561883f
Merge pull request #54 from arne182/release2
arne182 Dec 25, 2018
58e716f
Read from usb/present instead of usb/online (#484)
braden337 Dec 25, 2018
6d3f58c
Wait 10 seconds before first lane departure
arne182 Dec 26, 2018
5a95c85
Limit lane departure to above 45kph
arne182 Dec 26, 2018
448fdda
Move has lane up to 23 and 24
arne182 Dec 26, 2018
4d2ff10
Clean Up hyundai (#481)
emmertex Dec 27, 2018
e7d5ea8
Default alca mode to normal
arne182 Dec 27, 2018
7f65566
Merge pull request #55 from arne182/release2
arne182 Dec 27, 2018
c5b4f52
Merge pull request #56 from arne182/release2
arne182 Dec 27, 2018
9c47d81
Attempt 0.5.7 on Neos v6
arne182 Dec 27, 2018
317559a
Go through plan
arne182 Dec 27, 2018
1eebcdf
Go through planner
arne182 Dec 27, 2018
ff90be5
Add through plan
arne182 Dec 27, 2018
95fabc5
Force Boolean
arne182 Dec 27, 2018
a2a6631
Include @wocsor tuning
arne182 Dec 28, 2018
91ccfbc
Merge pull request #57 from arne182/release2
arne182 Dec 28, 2018
71b08de
Reduce the lane departure distances
arne182 Dec 28, 2018
9961908
restore old 056 visiond, might break vision for neos8
arne182 Dec 28, 2018
60b0333
Update RELEASES.md
arne182 Dec 28, 2018
f51e13e
Merge pull request #58 from arne182/057
arne182 Dec 28, 2018
e9f983d
Try resolve conflict
arne182 Dec 28, 2018
b469337
Merge branch 'LDA' into release2
arne182 Dec 29, 2018
1d3941d
Merge pull request #59 from arne182/release2
arne182 Dec 29, 2018
c213be9
Increase the lane depart sensitivity
arne182 Dec 29, 2018
15e0ab4
Check if delta poly gives better LDA
arne182 Dec 29, 2018
848b86b
Merge pull request #60 from arne182/release2
arne182 Dec 29, 2018
46646a3
Add Gernby SteeringRate
arne182 Dec 29, 2018
2862003
Apply Gernby to latcontrol
arne182 Dec 29, 2018
abad98e
Update Path Planner with Gernby
arne182 Dec 29, 2018
40067d3
Update Planner with Gernby
arne182 Dec 29, 2018
ac60908
Add @BogGyver code to fix steer by angle with Gernby
arne182 Dec 29, 2018
858bdab
Integrated Gernby smoothing of mpc
arne182 Dec 29, 2018
b71777e
Correct debug
arne182 Dec 29, 2018
be3ec23
Increase left sensitivity
arne182 Dec 29, 2018
c8aabf0
Alca off by default on GM
arne182 Dec 29, 2018
ea213ee
Update latcontrol with improved MCP interpolation
Gernby Dec 29, 2018
659b2bb
Try 1.15m
arne182 Dec 29, 2018
67e7f6d
Update 0x365 for Rav4H from @squall and my observations (#490)
arne182 Dec 29, 2018
e6a58e7
Remove debug
arne182 Dec 30, 2018
6f15db8
Merge pull request #62 from arne182/LDA
arne182 Dec 30, 2018
8a70847
Updated latcontrol with improved MPC interpolation
arne182 Dec 30, 2018
f1e60b4
Tuning from @virtuallychris
arne182 Dec 30, 2018
8a7b1a5
reverted accelerated_angle_rate for torque
Gernby Dec 31, 2018
f646da9
fixed merge conflicts
Gernby Dec 31, 2018
0fded2c
Added EX-L subsection for the existing 2019 Pilot (#489)
ErichMoraga Dec 31, 2018
0d0b55b
Merge pull request #63 from Gernby/Gernby
arne182 Dec 31, 2018
24d1ac7
Merge pull request #64 from arne182/Gernby
arne182 Dec 31, 2018
cde5896
Reverted projection_factor
Gernby Dec 31, 2018
3014706
Reduce sensitivity of button presses.
arne182 Dec 31, 2018
ba9725a
Merge pull request #66 from Gernby/patch-1
arne182 Dec 31, 2018
09fe975
Increase touch timeout to 500 ms
arne182 Dec 31, 2018
a402f2d
Revert Touch.c changes from 0.5.6
arne182 Dec 31, 2018
bf39e96
Revert back to 100ms
arne182 Dec 31, 2018
38211a2
Revert Change of sensitivity
arne182 Dec 31, 2018
961fc0f
Fixed future state calculation
Gernby Dec 31, 2018
178e051
Add stop and go button for auto resume
arne182 Jan 1, 2019
106a154
Enable auto resume only if button is active
arne182 Jan 1, 2019
143323d
Acc enabled regardless of button
arne182 Jan 1, 2019
16f0474
Merge pull request #67 from Gernby/patch-4
arne182 Jan 1, 2019
7b45cd7
Swap colours for over speed limit
arne182 Jan 2, 2019
38800dc
Add Roundabout 6
arne182 Jan 2, 2019
bb18d75
Add 5th Roundabout
arne182 Jan 2, 2019
1735c1e
Print the upcomming curvature
arne182 Jan 2, 2019
6761f87
One touch only every 500ms
arne182 Jan 2, 2019
762a547
Change the stop and go button to on by default
arne182 Jan 2, 2019
506670f
Add latControl
arne182 Jan 2, 2019
1f37c4c
Add latControl to Cereal
arne182 Jan 2, 2019
acb5f7f
Send angle_later to zmq
arne182 Jan 2, 2019
3452bfe
Print angle in 2.5s
arne182 Jan 2, 2019
74ba5b5
Fix syntax
arne182 Jan 2, 2019
e47dc83
fix syntax
arne182 Jan 2, 2019
d84e64b
Fixed TOC anchor links (#492)
energee Jan 3, 2019
d81f589
Restore old fix which worked for some people
arne182 Jan 3, 2019
5df8fe2
send mpc output
arne182 Jan 3, 2019
5fd67bb
Limit acceleration in curves based on future angle
arne182 Jan 3, 2019
e7b414b
Add 2 more roundabouts
arne182 Jan 3, 2019
af4091d
Merge pull request #68 from arne182/release2
arne182 Jan 3, 2019
cf524a4
Increase brake before turn at 90 kph
arne182 Jan 3, 2019
60b80e0
Fix Touch for all neos8 guys
arne182 Jan 4, 2019
7f7605a
Incease steerRatio for RAV4H
arne182 Jan 4, 2019
b0cf5a8
Print a_target[1]
arne182 Jan 4, 2019
aca5a0b
Set minimum of a_target correctly
arne182 Jan 4, 2019
ce57713
remove debugging print prepare to first merge
arne182 Jan 4, 2019
d52b575
Merge pull request #69 from arne182/BrakeCurvature
arne182 Jan 4, 2019
b893973
enable debug output
arne182 Jan 4, 2019
2caf197
Lower Accerlation in corners even further to test
arne182 Jan 4, 2019
fa40f99
change some roundabout approach limits
arne182 Jan 4, 2019
ed7ef5a
Modify more roundabout approach distances
arne182 Jan 4, 2019
54e9e23
Have set speed also reduce due to angle_later
arne182 Jan 4, 2019
ecaee2c
Spelling correction
arne182 Jan 4, 2019
315dde5
Update rate need to be higher to make pop ups working
arne182 Jan 5, 2019
07538e9
Try for touch.c fix for both leon and eon
arne182 Jan 6, 2019
3b5f57c
Fix undeleared
arne182 Jan 6, 2019
663332c
Add logic for neos6
arne182 Jan 6, 2019
be61017
Merge pull request #70 from arne182/leontouchfix
arne182 Jan 6, 2019
9e1bd2a
Roundabout on at 150
arne182 Jan 6, 2019
cfd1067
Remove debug
arne182 Jan 6, 2019
2f4ebd1
Merge pull request #71 from arne182/BrakeCurvature
arne182 Jan 6, 2019
16c7b2c
Add 200m back to reduce speed
arne182 Jan 7, 2019
65a670e
Reduce steering Ratio a bit to reduce oversteer
arne182 Jan 7, 2019
a88e639
Set Speed whatever the maximum angle was 2.5s ago
arne182 Jan 7, 2019
592f92c
Merge pull request #73 from arne182/2.5s
arne182 Jan 7, 2019
f682362
Gas on by default on GM
arne182 Jan 8, 2019
b78ed77
Adding GM Steering Rate (#495)
CryptoKylan Jan 9, 2019
42bc778
upload wiggle model
arne182 Jan 9, 2019
424fcea
@BogGyver final fix for touch on UI
arne182 Jan 10, 2019
1b28da0
@BogGyver final fix for touch on UI
arne182 Jan 10, 2019
9eb1666
Merge new 2019 Civic and existing 2017-18 Civic Hatch (#446)
csouers Jan 12, 2019
72b6263
disable service logging from @andy
arne182 Jan 12, 2019
ba06126
Reduce steering ratio for Corolla
arne182 Jan 12, 2019
d6d3d37
Reduce Corolla steering ratio even further similar to RAV4H
arne182 Jan 12, 2019
c2fdf3b
Use slo button to switch off braking in corners due to angle
arne182 Jan 12, 2019
2e0b563
Increase allowed accerlation in corners
arne182 Jan 12, 2019
9cf542d
Updated links from Slack to Discord
rbiasini Jan 14, 2019
d5f8643
Increment hatchback year (#508)
csouers Jan 22, 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
7ca8d89
Also works on new neos
arne182 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
2c9d5af
removal of snpe libs (#517)
rbiasini Jan 29, 2019
2cee2e0
Merge pull request #519 from commaai/devel
rbiasini Feb 1, 2019
cfa3991
0.5.8 Merge branch 'release2' of git://github.com/commaai/openpilot i…
arne182 Feb 1, 2019
b27a0f2
Up limits to make stock slow down more visible
arne182 Feb 1, 2019
be5eaf4
Decrease angle speed slow down 20%
arne182 Feb 1, 2019
f666c2d
Correct mapvalid
arne182 Feb 1, 2019
f20bbbd
fix model
arne182 Feb 1, 2019
98da49b
Correct 20% reduction
arne182 Feb 2, 2019
37ff64b
New SteerLimitParams
arne182 Feb 2, 2019
da92f65
Add TR back 1 of 2
arne182 Feb 2, 2019
2c91438
Fix TR 2 of 2
arne182 Feb 2, 2019
6295a40
Create ch_visiond.sh
arne182 Feb 3, 2019
6467219
add wiggly from bog
arne182 Feb 5, 2019
8406a4a
remove old files
arne182 Feb 5, 2019
32951e9
add symulink
arne182 Feb 5, 2019
d414a8c
Add vision button for toyota
arne182 Feb 5, 2019
8090505
Add vision wiggly button for Honda
arne182 Feb 5, 2019
76aabd7
Fix asci
arne182 Feb 5, 2019
8ac3320
Fix asci
arne182 Feb 5, 2019
220d25e
Fix more asci
arne182 Feb 5, 2019
e6aeef5
Fix 257 asci
arne182 Feb 5, 2019
2d1ead3
remove 257
arne182 Feb 5, 2019
8667861
Fix 237
arne182 Feb 5, 2019
1ff3b70
Fix 295
arne182 Feb 5, 2019
677e1d8
Newest UIBT_module
arne182 Feb 5, 2019
0a3aa5c
Revert back
arne182 Feb 5, 2019
4d52186
Create old Format for button labels for Honda
arne182 Feb 5, 2019
6e9b41e
Create old Format for button labels for Toyota
arne182 Feb 5, 2019
aaf115b
Fix Typo
arne182 Feb 5, 2019
76ad109
Fix indentation
arne182 Feb 6, 2019
ace8035
make script excecutable
arne182 Feb 6, 2019
9b2779c
Disable auto reboot when vision change
arne182 Feb 7, 2019
4b6c9b0
Add Vision Button for GM
arne182 Feb 7, 2019
3b541b9
Add Lastvisiond for GM
arne182 Feb 7, 2019
3be6b6f
disable 2 second sleep.
arne182 Feb 7, 2019
dd5ae94
Remove vision condition check
arne182 Feb 7, 2019
9ff36e8
Add subprocess Import for Toyota
arne182 Feb 7, 2019
6293a51
Add subprocess for GM
arne182 Feb 7, 2019
5d759f2
add subprocess import for Honda
arne182 Feb 7, 2019
3a490c2
Merge pull request #77 from arne182/058
arne182 Feb 7, 2019
62491cd
Remove grid from tri switch 3
arne182 Feb 7, 2019
3dd5e77
Update values.py
Feb 8, 2019
e0a10fc
Update README.md
arne182 Feb 8, 2019
4d74dd9
Merge pull request #78 from HylkeJellema/release2
arne182 Feb 8, 2019
879c033
If sound button not available, no sound
arne182 Feb 10, 2019
786b6da
restore prius tuning by icmma
arne182 Feb 13, 2019
8b62ee2
Add capnp for lkmode
arne182 Feb 15, 2019
1cbe240
Add condition for lkmode to carcontroller for GM
arne182 Feb 15, 2019
bcd278a
LKMode for GM in carstate
arne182 Feb 15, 2019
12758a1
Add logic in GM Interface for lkMode
arne182 Feb 15, 2019
60d49c9
Merge pull request #85 from arne182/gmlka
arne182 Feb 16, 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: 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: 64 additions & 61 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
* no 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
60 changes: 60 additions & 0 deletions TUNING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Welcome to openpilot - Tuning mod
======

This openpilot mod allows you to dynamically modify variables used by openpilot.
The purpose of this mod is to make it easier to tweak certain variables instead of
having to modify code, recompile, reboot after every change.

To use this mod you need to do 2 things:

1. Create a file called **/sdcard/tuning/params.txt** on your EON.

You will need to specify which variables you want the Tuning mod to manage by adding them to that file. See the file called **selfdrive/ui/params.example.txt** for an example.

2. Modify OpenPilot code that uses the variable so that it is read from this file instead of hard coded. This is left for the user to figure out and implement. To help you get started with this step you can use the following python code to read in the variables stored by this mod:

```
import imp
f = open("/sdcard/tuning/params.txt")
tuning = imp.load_source('tuning', '', f)
f.close()
````

This will read all of the parameters that you've defined in your **params.txt** file and store them into a python variable called `tuning`. Then you need to assign the real variables that openpilot uses with the corresponding parameter value. For example, if openpilot has a hard coded value for `ret.steerKp=[0.2]` Assuming your **params.txt** file contains this parameter:

`
MySteerKp=[0.25]
`

You would then replace that line in the openpilot python file with `ret.steerKp=tuning.MySteerKp`.

This mod can manage up to 10 different variables with each variable having a maximum of 3 element values in it.

For questions or info about this mod, visit the comma slack channel #mod-tuning

To change the "scale" of the steps tap the "Steps" box. It will cycle through different scales. The step scales are: \[0.000001, 0.00001, 0.0001, 0.001, 0.01, 0.1, 1, 5\]

![screenshot](https://i.imgur.com/G7j2vQY.jpg)

CHANGE LOG:

v0.0.4
========================
* Add ability to specify "presets" in params.txt file (See selfdrive/ui/params.example.txt). You can have up to 10 "preset" values. NOTE: The parameter list for each preset MUST match. When you edit a preset value the values for the current preset will be written to a file called **/sdcard/tuning/tune.txt**. This is now the file you should be loading into your python code.

v0.0.3
========================
* Increase precision to 6 decimal places

v0.0.2
========================
* Added 'press and hold' on the +/- buttons
* Swapped positions of +/- buttons

v0.0.1
========================
* Initial version

To Do:
- [ ] Ability to handle hex values
- [ ] Suppress baseui from toggling zoom view when tapping
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 gen/java/UI.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"))
13 changes: 13 additions & 0 deletions cereal/car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ struct CarState {
leftBlinker @20 :Bool;
rightBlinker @21 :Bool;
genericToggle @23 :Bool;
blindspot @26 :Bool;
distanceToggle @27 :Float32;
laneDepartureToggle @28 :Bool;
accSlowToggle @29 :Bool;
blindspotside @30 :Float32;
readdistancelines @31 :Float32;
gasbuttonstatus @32 :Float32;
lkMode @33 :Bool;

# lock info
doorOpen @24 :Bool;
Expand Down Expand Up @@ -244,6 +252,10 @@ struct CarControl {
leadVisible @3: Bool;
visualAlert @4: VisualAlert;
audibleAlert @5: AudibleAlert;
rightLaneVisible @6: Bool;
leftLaneVisible @7: Bool;
rightLaneDepart @8: Bool;
leftLaneDepart @9: Bool;

enum VisualAlert {
# these are the choices from the Honda
Expand Down Expand Up @@ -355,6 +367,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
51 changes: 45 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,10 @@ struct Plan {
aTarget @18 :Float32;
jerkFactor @6 :Float32;
hasLead @7 :Bool;
hasLeftLane @23 :Bool;
hasRightLane @24 :Bool;
hasleftLaneDepart @25 :Bool;
hasrightLaneDepart @26 :Bool;
fcw @8 :Bool;
longitudinalPlanSource @15 :LongitudinalPlanSource;

Expand All @@ -562,6 +574,11 @@ struct Plan {

gpsPlannerActive @19 :Bool;

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

struct GpsTrajectory {
x @0 :List(Float32);
y @1 :List(Float32);
Expand Down Expand Up @@ -1567,10 +1584,30 @@ 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 LatControl {
anglelater @0 :Float32;
}

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 +1676,7 @@ struct Event {
boot @60 :Boot;
liveParameters @61 :LiveParametersData;
liveMapData @62 :LiveMapData;
latControl @63 :LatControl;
cameraOdometry @64 :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;
# }
#}
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
Loading