Commit Graph

59 Commits

Author SHA1 Message Date
Vehicle Researcher e47a2e6e30 openpilot v0.5.13 release
old-commit-hash: dd34ccfe288ebda8e2568cf550994ae890379f45
2019-06-06 04:38:45 +00:00
Vehicle Researcher 0932b367bd openpilot v0.5.12 release
old-commit-hash: 3f9059fea886f1fa3b0c19a62a981d891dcc84eb
2019-05-16 13:20:29 -07:00
Arne Schwarck 1de23f3d10 Add lane departure warning on dashboard for Toyota (#605)
* Add lane departure alert in controlsd

* Need init values for LDA

* Add lane departure in interface.py

* Include LDA in CarControler

* Add logic for LDA in toyotacan

* Add speed condition and comments for LDA

* Correct right CS.vEgo

* Correct rPoly spelling

* Add left and rightLaneDepart to HUDControl in car.capnp

* Add left and rightLane_Depart in UI function

* set controlsd priority

* revert

* There must be a line to depart from

* Include changes from @pd0wm

* Remove redundant False allocation

leftLaneDepart and rightLaneDepart as False by default according to @pd0wm

* Modify variable names

right_lane_depart and left_lane_depart to conform with python naming convention

* Modify variable names

right_lane_depart and left_lane_depart to conform with python naming convention

* Wrap lane departure warning in one bool

old-commit-hash: f5044670fa7665bacab49d438e9631191312b833
2019-05-06 22:19:00 +02:00
marcbou 0a4a8f203b correct some spelling errors (#628)
old-commit-hash: d8b1e99d77ca1b440f3486f48f7e14a0cfeb9491
2019-05-05 03:23:32 -07:00
Drew Hintz 3ad68e4378 getting ready for Python 3 (#619)
* tabs to spaces
python 2 to 3: https://portingguide.readthedocs.io/en/latest/syntax.html#tabs-and-spaces

* use the new except syntax
python 2 to 3: https://portingguide.readthedocs.io/en/latest/exceptions.html#the-new-except-syntax

* make relative imports absolute
python 2 to 3: https://portingguide.readthedocs.io/en/latest/imports.html#absolute-imports

* Queue renamed to queue in python 3
Use the six compatibility library to support both python 2 and 3: https://portingguide.readthedocs.io/en/latest/stdlib-reorg.html#renamed-modules

* replace dict.has_key() with in
python 2 to 3: https://portingguide.readthedocs.io/en/latest/dicts.html#removed-dict-has-key

* make dict views compatible with python 3
python 2 to 3: https://portingguide.readthedocs.io/en/latest/dicts.html#dict-views-and-iterators
Where needed, wrapping things that will be a view in python 3 with a list(). For example, if it's accessed with []
Python 3 has no iter*() methods, so just using the values() instead of itervalues() as long as it's not too performance intensive. Note that any minor performance hit of using a list instead of a view will go away when switching to python 3. If it is intensive, we could use the six version.

* Explicitly use truncating division
python 2 to 3: https://portingguide.readthedocs.io/en/latest/numbers.html#division
python 3 treats / as float division. When we want the result to be an integer, use //

* replace map() with list comprehension where a list result is needed.
In python 3, map() returns an iterator.
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-map-and-filter

* replace filter() with list comprehension
In python 3, filter() returns an interatoooooooooooor.
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-map-and-filter

* wrap zip() in list() where we need the result to be a list
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-zip

* clean out some lint
Removes these pylint warnings:
************* Module selfdrive.car.chrysler.chryslercan
W: 15, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 16, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 25, 0: Unnecessary semicolon (unnecessary-semicolon)
************* Module common.dbc
W:101, 0: Anomalous backslash in string: '\?'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
************* Module selfdrive.car.gm.interface
R:102, 6: Redefinition of ret.minEnableSpeed type from float to int (redefined-variable-type)
R:103, 6: Redefinition of ret.mass type from int to float (redefined-variable-type)
************* Module selfdrive.updated
R: 20, 6: Redefinition of r type from int to str (redefined-variable-type)

old-commit-hash: 9dae0bfac4e54ec2b2e488d2b4ead1495c8f56d8
2019-05-02 11:08:59 -07:00
Vehicle Researcher 83dfc3ca1f openpilot v0.5.11 release
old-commit-hash: 2f92d577f995ff6ae1945ef6b89df3cb69b92999
2019-04-23 01:41:19 +00:00
Vehicle Researcher 30f7a33535 openpilot v0.5.10 release
old-commit-hash: f74a201edcce4a81ae9e1ba388039a982a68f2fa
2019-03-26 01:09:18 -07:00
Vehicle Researcher 2cc4edde68 openpilot v0.5.9 release
old-commit-hash: 0207a970400ee28d3e366f2e8f5c551281accf02
2019-02-20 01:39:02 +00:00
Vehicle Researcher 3bde47d556 openpilot v0.5.8 release
old-commit-hash: b967da5fc1f7a07e3561db072dd714d325e857b0
2019-01-23 15:34:52 -08:00
Vehicle Researcher f8ce921247 openpilot v0.5.7 release
old-commit-hash: 210db686bb89f8696aa040e6e16de65424b808c9
2018-12-10 14:13:12 -08:00
Vasily Tarasov 52bb0281df Keep steering on radar fault (#442)
old-commit-hash: e32463ee96d7fcdb2c278811fad5d24c0d5d7185
2018-11-19 20:25:33 -08:00
Vehicle Researcher fdbf213be8 openpilot v0.5.6 release
old-commit-hash: 860a48765d1016ba226fb2c64aea35a45fe40e4a
2018-11-17 02:08:34 -08:00
dekerr e280f9b495 Improve VM dynamic sol accuracy (#391)
* use solve and eye func

* remove uneeded import from vehicle model

old-commit-hash: 00429e6bbb27d79f452da81a4b7210db53b03f01
2018-10-30 22:30:09 +01:00
Vehicle Researcher cda78d7547 openpilot v0.5.5 release
old-commit-hash: 8f3539a27b28851153454eb737da9624cccaed2d
2018-10-21 15:00:31 -07:00
Vehicle Researcher 7062c6dcc4 openpilot v0.5.4 release
old-commit-hash: a422246dc30bce11e970514f13f7c110f4470cc3
2018-09-25 00:13:41 -07:00
Andrew Frahn 04067deebc Kia Sorento and future Multi-Car Support (#346)
* hyundai WIP

* steer_driver_factor is 1

* removed unnecessary file

* removed unnecessary code

* Update carcontroller.py

bug fix

* safety tuning and fixed interface stiffness

* better lateral tuning, some fixes

* Fix set speed

* added camera state reading, autoresume from stop, cancel on accel, hud alerts

* WIP

* Updated for Kia Sorento *WIP*

* Cleanup

* clean2

* Bug Fixes

* pre-merge

* Add all the cars!

* Panda to auto-detect Camera Bus

* Move Checksum Check

* Final Sorento Tuning

* Make CAN3 for Cam default

* Update README.md

* update panda, minor aesthetic updates

* few other minor changes

* added steer not allowed alert

* bup panda version to force panda update

* fixed camera alerts

old-commit-hash: b3654cbcc9150c5c1388d9be723e707854700dd1
2018-09-10 00:30:36 +02:00
Vehicle Researcher e07d32c790 openpilot v0.5.3 release
old-commit-hash: 285c52eb693265a0a530543e9ca0aeb593a2a55e
2018-09-03 16:43:12 -07:00
Vehicle Researcher b73d457d20 openpilot v0.5.2 release
old-commit-hash: 0129a8a4ff8da5314e8e4d4d3336e89667ff6d54
2018-08-19 20:36:37 -07:00
Vehicle Researcher 86d4bbcba6 openpilot v0.5.1 release
old-commit-hash: 6f3d10a4c475c4c4509f0b370805419acd13912d
2018-08-02 02:58:52 +00:00
Riccardo 30e7998efd fixed resume press when comma pedal is used
old-commit-hash: 18c6482545f16e49813385b9694e7f073393d120
2018-07-13 15:52:59 -07:00
Vehicle Researcher e41a943dd0 openpilot v0.5 release
old-commit-hash: de33bc46452b1046387ee2b3a03191b2c71135fb
2018-07-12 18:52:06 -07:00
dekerr df4cfe1580 Small cleanup (#275)
* mass unit conversions

* flat/explicit conditions

* fix typos

* remove hardcode

* Update README.md

* Update carcontroller.py

old-commit-hash: ce67c75f1f8cd65e86070d1ac9f6fe8cca1379cc
2018-06-28 12:33:54 -07:00
Vehicle Researcher 405e7c1b02 openpilot v0.4.7.2 release
old-commit-hash: 95509a58cd906827bff61937f6132daa7460122e
2018-06-25 13:48:52 -07:00
Vehicle Researcher 0730821471 openpilot v0.4.7.1 release
old-commit-hash: 1181a00fe911ceafaa637a46d0fb4ad36695d2bc
2018-06-19 01:41:45 +00:00
Vehicle Researcher 242328f92c openpilot v0.4.7 release
old-commit-hash: ae5cb7a0dab8b1bed9d52292f9b4e8e66a0f8ec9
2018-06-16 20:59:34 -07:00
dekerr d8318833a6 Std unit conversions (#259)
* Added conversion constants

* implemented std unit conversion

* changed centerToFront ratio

Changed weight distribution ratios used to calc center of gravity distances to align closer to manufacturer specs

* implemented std unit conversion

* remove unused conversion

* reverted wheelbase conversion

slight change to pilot wheelbase

* removed redundant conversion

* removed incorrect/unused conversion

* removed class that now exists in honda/values.py

* redirect Cruisebuttons call

* redirect Cruisebuttons call

* Update interface.py

* Update numpy_fast.py

Refactor

* Update numpy_fast.py

* Update numpy_fast.py

-encapsulated get_interp 
-reduced calls to len() for iterable input

old-commit-hash: 8849aa02a3e0acefb53fda482aa0f9ae97cc0ef0
2018-06-04 12:39:54 -07:00
Vehicle Researcher 8fc7b0b828 openpilot v0.4.6 release
old-commit-hash: c6df34f55ba8c5a911b60d3f9eb20e3fa45f68c1
2018-05-23 03:59:04 +00:00
Vehicle Researcher 83eae004d8 openpilot v0.4.5.1 release
old-commit-hash: 1b7b3b4e66a87b61436a689961fa1b9bed1b2c50
2018-05-01 23:19:47 +00:00
Vehicle Researcher 7c1e812922 openpilot v0.4.5 release
old-commit-hash: 37285038d3f91fa1b49159c4a35a8383168e644f
2018-04-28 09:44:39 +00:00
Vehicle Researcher e4ba9edefa openpilot v0.4.4 release
old-commit-hash: 9a9ff839a9b70cb2601d7696af743f5652395389
2018-04-14 06:10:58 +00:00
Vehicle Researcher cd558d30d1 openpilot v0.4.3.2 release
old-commit-hash: 78df63a6af4b3108a25094f719d4c5e26b2fd658
2018-03-31 07:54:47 +00:00
Vehicle Researcher 171647c2fc openpilot v0.4.3.1 release
old-commit-hash: 3d628a6fe2f1aec635f11f7c1ff238921ff82730
2018-03-19 23:40:24 -07:00
Vehicle Researcher 85171c28fc openpilot v0.4.3 release
old-commit-hash: 51fad4a6c6b275bee269b0e76b6c0c29d9136847
2018-03-18 10:36:29 -07:00
Vehicle Researcher df22dac4f6 openpilot v0.4.3 release
old-commit-hash: 9a411ebf32ae6908156badae25c16839ada7ad99
2018-03-17 00:01:50 -07:00
Vasily Tarasov e9ef18d088 Interpolate ki/kp for steering PID loop (#200)
* Interpolate ki/kp for steering PID loop

Very much needed for the Volt port: car ping-pongs with low kp
on high speeeds, and the loop is unstable with high kp on
low speeds.

Also, removes "number or array?" logic from PIController,
now that all the callers use interpolation ofr ki/kp.

* Pass speed to steering PID loop for ki/kp interpolation

* Remove unused numbers import

old-commit-hash: 93f55f3ccf6b087e9e3a237fd813cec002530890
2018-03-15 13:28:15 -07:00
Vehicle Researcher 4e867831f7 openpilot v0.4.2 release
old-commit-hash: 28c0797d30175043bbfa31307b63aab4197cf996
2018-02-06 12:43:45 -08:00
Vehicle Researcher 1d23b22ccd openpilot v0.4.0.2 release
old-commit-hash: da52d065a4c4f52d6017a537f3a80326f5af8bdc
2018-01-18 15:46:12 -08:00
Vehicle Researcher d9578e2f8e openpilot v0.4.0.1 release
old-commit-hash: a77c0a1098d629b45cb363d38a9df36445ea8bd0
2017-12-23 17:15:27 -08:00
Vehicle Researcher d914111e16 openpilot v0.3.9 tweaks
old-commit-hash: 1ad9cc8c67f2c784907acdd6316a16061987b71d
2017-12-06 12:48:00 -08:00
Vehicle Researcher 490307fe50 openpilot v0.3.9 release
old-commit-hash: 5627d0d7fd3fe0eb673b21788a9ce0ca442df7b1
2017-11-22 04:30:24 -08:00
Vehicle Researcher f054ff0b08 openpilot v0.3.8.2 tweaks
old-commit-hash: 7dabcdace8107b9acf12f71c64db7185947dd258
2017-11-03 18:21:38 -07:00
Vehicle Researcher 81ebf6b142 openpilot v0.3.8.2 release
old-commit-hash: 187a70f760b4b1cd463619a161e6a929fc86e1b4
2017-10-31 02:27:39 -07:00
Vehicle Researcher 581906f7da openpilot v0.3.7 tweaks
old-commit-hash: 48303589e9e8e5b76acb4934634083fa77559b93
2017-10-03 23:46:23 -07:00
Vehicle Researcher 2c0cc6103a openpilot v0.3.7 release
old-commit-hash: daf54ad54d6356d35061ea2864d6397dc6184f3f
2017-09-30 19:05:03 -07:00
Vehicle Researcher 7d35ed0ae0 openpilot v0.3.6 tweaks
old-commit-hash: 19dd5f3e3246c94fcb70a2a8e09b5213e1c4ba15
2017-08-10 20:38:56 -07:00
Vehicle Researcher ee8459a55f openpilot v0.3.6 release
old-commit-hash: 99cb610b12334893cf3087f974d33f0e233f38e8
2017-08-09 17:41:38 -07:00
Vehicle Researcher 46e0ee7750 openpilot v0.3.4 release
old-commit-hash: 6f46f988d9d89b5bd18e38c5e5509b5c252ae2c1
2017-07-28 03:23:57 -07:00
Joey Lao 44df2a4060 Update steering controls saturated message
old-commit-hash: 2aa9a56f405fe53f5e6fd77c3de94a5981b389ec
2017-07-06 22:36:55 -07:00
Vehicle Researcher d21c4170d8 openpilot v0.3.3 release
old-commit-hash: 5cf91d0496688fed4f2a6c7021349b1fc0e057a2
2017-06-28 13:57:09 -07:00
Ted Slesinski 25d9753df2 Fixes global saturation change
old-commit-hash: 97eb55cc55eea527dc442acd4f27ef55540d7c1e
2017-06-20 02:47:47 -04:00