Commit Graph

1600 Commits (spacecruft)

Author SHA1 Message Date
robbederks ba59ada0e9
No ESP in non-white (#514) 2020-04-20 17:49:52 -07:00
robbederks c3336180b6
Fix the CAN init fix (#513) 2020-04-20 17:07:47 -07:00
Adeeb 884afa0ef7
Safety Test Refactor: Chrysler and Volkswagen PQ (#508)
* volkswagen pq

* chrysler

* cleanup
2020-04-17 13:34:23 -07:00
Adeeb d77b72d169
Safety Test Refactor: Nissan (#510)
* start nissan

* packer
2020-04-17 13:33:36 -07:00
Jason Young 4c7755c471
Match Panda DFU entry fix in "make recover" process (#509)
* Match DFU entry fix from f07a6ee in "make recover" process

* Why use many code when few code do trick
2020-04-16 15:51:16 -07:00
robbederks 0336f625dc
Pedal gas pressed safety limits (#507)
* Fixed toyota pedal gas disengage and increased pedal limits to OP limits +5%

* Fix safety unit tests?

* Fix imports

* Fix imports #2
2020-04-16 14:52:59 -07:00
Willem Melching 715b1a1695
Hyundai-Kia-Genesis (HKG) (#503)
* update hkg steer torque message

* misra

* Get bus

* Allow sending LFA HDA message

* Add blacklisted addr

* Update safety replay

* Cleanup bus checks

* Update to new torque message
2020-04-15 19:33:41 -07:00
Adeeb 6f105e827b
Safety Test Refactor: Subaru (#502)
* subaru global kind of works

* all global uses can packer

* fix legacy

* legacy uses can packer

* bump opendbc

* i guess docker caches that
2020-04-15 17:00:21 -07:00
Adeeb 57cc954f24
Safety Test Refactor: GM (#504)
* start GM refactor

* use packer
2020-04-15 16:59:01 -07:00
Adeeb dd01c3b9ca
Safety Test Refactor: Hyundai (#505)
* use PandaSafetyTest for hyundai

* use packer
2020-04-15 16:58:13 -07:00
Drew Hintz 592c2c864d
add support to can_unique.py for Cabana CSV format. (#506)
* add support to can_unique.py for Cabana CSV format.

also fix python3 issue where open() was in binary mode, but we want text
mode.

* consolidate duplicated code

* fix typo caught by the linter
2020-04-15 16:56:19 -07:00
robbederks ccf13b7afd
No more infinite while loops in CAN init (#499) 2020-04-13 20:32:53 -07:00
Adeeb 6c442b4c33
Safety Test Refactor: Volkswagen MQB (#493)
* pull test_volkswagen_mqb.py from safety-test-refactor

* prev_brake is now a standard test

* abstract cruise enable/disable tests

* unused

* move

* hack to get around unittest reporting skipped tests
2020-04-13 17:13:08 -07:00
Willem Melching f07a6ee7c5
panda recover should go through bootstub first (#498) 2020-04-13 15:12:06 -07:00
Adeeb 8cc3a35700
remove cadillac (#496) 2020-04-13 14:43:46 -07:00
Adeeb 62e4d3c369
Chrysler: fix missing button signal on TX (#490)
* Chrysler: fix missing button signal on TX

* fix test
2020-04-10 13:48:41 -07:00
Adeeb abce8f32b1
Safety Test Refactor: Toyota + support code (#491)
* bring over toyota + support code from safety-test-refactor

* old tests still use StdTest

* don't duplicate

* test fwd

* make linter happy

* fix indent

* fix ident

* fix order

* whitespace

* move some common tests

* cleanup

* unused

* comment
2020-04-10 13:45:55 -07:00
robbederks 500370aecd
Make sure relay faults make it to the health packet (#492)
* Added relay malfunction handling

* Bump version

* Fixed safety test

* set/reset

* fixed test again
2020-04-09 15:53:46 -07:00
Adeeb bc90b60f97
toyota: use universal gas pressed bit (#488)
* toyota: use universal gas pressed bit

* fix tests
2020-04-09 12:09:34 -07:00
robbederks 74d10ccd38
Fixed possible race condition (#487) 2020-04-07 14:59:19 -07:00
Willem Melching a05361ebc2
cleanup safety_replay dockerfile (#486) 2020-04-06 22:33:56 -07:00
Willem Melching fe73dcc913
Openpilot-tools is deprecated (#484)
* openpilot-tools is deprecated

* Add pycurl

* Add dependency for pycurl

* Add tenacity

* add atomicwrites
2020-04-06 22:19:25 -07:00
Greg Hogan da8e00f115
TX message guaranteed delivery (#421)
* wait for tx slots before clearing nak

* fix bootstub

* Fixed misra

* Cleanup

* Added bulk write test to test USB NAK on bulk CAN messages

* Added automated bulk tx test

* Fixed linter

* Fixed latency test influence

* Added timeout to python API

* Disabled can write timeout in bulk write test

Co-authored-by: Robbe <robbe.derks@gmail.com>
2020-04-06 16:49:42 -07:00
Willem Melching d8f618492b Add ISO number for longitudinal limits flag comment 2020-04-06 15:12:01 -07:00
George Hotz 6a60b78110 touch ups 2020-04-06 15:01:48 -07:00
George Hotz 2ce65361d6 comments on unsafe flags 2020-04-06 14:54:32 -07:00
George Hotz d88013450d remove from there as well 2020-04-06 14:49:40 -07:00
George Hotz 055ea07eea remove that unsafe flag since it isn't implemented and it's unclear how to 2020-04-06 13:37:00 -07:00
eFini 4e98bbe8c9
Apply unsafe allow gas mode to all cars. (#480)
Apply unsafe iso accel/decel limit to toyota.
2020-04-06 08:56:36 -07:00
Shreyansh Chandak 0c2c149490
Fixing libusb busy error (#174)
Detaching all kernels before attempting to claim the usb
2020-04-02 10:12:03 -07:00
Appleguru 753c42cf56
Update Board Mac SDK Install script to work on clean mac (#146)
Install pip2 and homebrew as part of the sdk script, which aren't installed on clean systems
2020-04-02 10:08:41 -07:00
Jason Young b9a9ea395f
Unsafe gas disengage mods, fix test compile warning (#481) 2020-04-01 14:03:13 -07:00
Jason Young 08ef92d585
Safety model for Volkswagen PQ35/PQ46/NMS (#474)
* Align with VW Community port 0.7.4-devel

* Import of PQ35/PQ46/NMS safety work

* Add safety replay drive for PQ35/PQ46/NMS

* Unwind community port hax for upstream, bump Panda ver

* Update comment

* Reduce whitespace diff

* Reduce whitespace diff

* Don't test the drive until it's uploaded

* Propitiate MISRA

* Ixnay on the VERSION LF

* Remove VERSION LF, update safety_replay with PQ drive

* Freshen cereal ref to include fields used in VW PQ test drive

* Remove superfluous return

* Bypass Docker caching issue
2020-04-01 12:38:27 -07:00
Jason Young 51e0a55d6d
Support code for unsafe mode unit tests (#478)
* Support code for unsafe mode tests

* Fix pre-existing MISRA warning while I'm here
2020-04-01 10:17:51 -07:00
George Hotz 5325b62bbe current_safety_mode 2020-03-31 16:31:01 -07:00
George Hotz 7908b72244 update updating unsafe mode 2020-03-31 16:30:08 -07:00
kegman 98503e8660
disable stock honda AEB in unsafe mode (#477)
* disable stock honda AEB in unsafe mode

for some Honda models when OP is engaged, stock AEB will activate in unexpected circumstances, such as when there are 2 lane highways when driving on a curve with opposing traffic.  When this occurs the car may brake unexpectedly (Honda Civic) or loss of gas pedal function may occur for a few seconds (Honda Pilot)

* Update safety_honda.h
2020-03-31 16:26:26 -07:00
George Hotz 01b2ccbeda one more 2020-03-31 12:58:25 -07:00
George Hotz 9a30265a84 weak steering while not engaged 2020-03-31 12:55:16 -07:00
George Hotz 577f10b1ae added options for unsafe mode 2020-03-31 10:21:00 -07:00
George Hotz 83cf7bf4cb update comment 2020-03-30 18:22:08 -07:00
George Hotz 4556e7494c enable unsafe mode, toggle for use by forks that so choose 2020-03-30 18:18:54 -07:00
Willem Melching de89fcdc4f
Nissan leaf (#473)
* use rear wheels for speed

* Add leaf gas message

* Add brake press check to safety

* Fix typo in comparison

* threshold on gas and brake pressed and add cruise enabled check

* Fix brake pressed result

* Use same message for cruise enabled detection

* Fix typo

* Fix tests

* Add RX checks

* Allow sending cancel from panda

* Add cancel command to TX messages in tests

* Remove angle limit

* Change speed factor

* Change speed factor in tests

* Remove max angle from tests

* Fix tests

* try cancel using seatbelt

* Try different cancel message

* Fix TX_MSGS in test

* Fix fwd test
2020-03-27 21:45:16 -07:00
rbiasini 0696730c14
Toyota: add missing offset from speed signal (#469)
* Toyota: add missing offset from speed signal

* Let's also define ABS value in macro
2020-03-11 17:30:30 -07:00
Andre Volmensky 5b1a8dc873
Filtering LKAS HUD messages (#468)
* Filtering LKAS HUD messages

* Added nissan test_fwd_hook()

* Added Nissan TX_MSGS safety test

Co-authored-by: rbiasini <riccardo.biasini@gmail.com>
2020-03-11 00:00:33 -07:00
Riccardo Biasini 99050f4129 test_spam_can_buses was missing from Nissan 2020-03-10 17:42:07 -07:00
rbiasini 0f21b19bb3
Cleanup pedal nomenclature (#467)
* consolidate gas and brake nomenclature

* fixes in code and tests
2020-03-08 23:48:00 -07:00
rbiasini ceff91d3c5
Standardize brake safety tests (#465)
* WIP: improve safety test format

* Fix tests
2020-03-07 23:22:47 -08:00
rbiasini 04809e1329
Hyundai brake check (#464)
* WIP: adding brake check

* Added Hyundai brake tests
2020-03-07 21:26:03 -08:00
rbiasini 74c8ee0a7a
Subaru brake check (#463)
* WIP: subaru brake check

* FInalized logic and added tests to Subaru brake check
2020-03-06 22:29:46 -08:00