Commit Graph

1600 Commits (spacecruft)

Author SHA1 Message Date
Riccardo 4f9c879696 remove abunch of lines from safety regression tests by using common make_msg function 2019-11-19 11:29:04 -08:00
Riccardo fb81414305 mispelled word 2019-11-19 10:22:22 -08:00
Riccardo 57f5ef8cd8 Fix misra: addr can't be more than 29 bits anyway 2019-11-18 15:53:08 -08:00
Riccardo 68ff501277 typo 2019-11-18 13:13:31 -08:00
Riccardo d5c772b0b1 Fixe Toyota message white-list 2019-11-18 12:52:31 -08:00
Riccardo 48197a9216 Better masking for ELM mode 2019-11-18 12:05:05 -08:00
Riccardo b8fe78c3e7 VW is also tested for safety replay 2019-11-17 23:35:16 -08:00
Riccardo 212d336b3d Safety Chrysler: Added cancel spam button check 2019-11-17 22:32:13 -08:00
Greg Hogan d44b5621cd fix print in example 2019-11-17 11:19:59 -08:00
Greg Hogan 02d579a537 functional addr handling 2019-11-17 09:30:06 -08:00
rbiasini 6249a183d6
tx_hook shall have a white-list of messages (#381)
* Started whitelisting messages

* Also toyota and cadilalc fix

* bug fixes and better checks. Need to figure out a solution for honda

* Whitelist also for subaru

* Added Chrysler as well to whitelist

* And Hyundai too

* now all supported cars should have a whitelist of messages

* Fix linter

* This should fix process replay

* Honda too is now whitelisted

* struct typedef

* Had forgot GM

* had a wrong addr for GM whitelist

* This should fix all the tests

* bump panda
2019-11-17 00:24:19 -08:00
Greg Hogan 8138fc14c8 uds: handle function addrs and fw version query example 2019-11-16 18:54:28 -08:00
Robbe 6626a54241 Fixed python health api 2019-11-15 21:01:46 -08:00
Greg Hogan b9b79e8b77 uds zero second timeout 2019-11-15 13:52:25 -08:00
Riccardo e0de1a4fc8 define ALLOW_DEBUG in safety tests 2019-11-15 13:19:02 -08:00
Riccardo 86dec4b8ba Safety modes that violate ISO26262 requirements are not compiled in RELEASE build 2019-11-15 12:20:15 -08:00
Riccardo e74ed93640 safety tests a bit more simplified 2019-11-15 01:12:54 -08:00
Riccardo 2027765bd0 relay malfunction test centralized 2019-11-15 01:03:34 -08:00
Riccardo 8af1a01ac6 clean up safety tests 2019-11-15 00:52:34 -08:00
Riccardo e8f7a3b2a5 upd panda 2019-11-15 00:33:36 -08:00
rbiasini cfcce8f06b
WIP: Relay malfunction (#384)
* relay malfunction handling. WIP

* more cars to relay_malfunctions

* fixed safety tests

* minor change

* Fix linter

* all cars now have a relay_malfunction safety check

* added relay_malfunction safety test for fwd hooks

* added proper regression tests for relay malfunction to all cars

* temp patch to not fail regression in honda bosch

* also addr 0x194 is some nidec honda is steer control

* proper relay check for honda bosch too
2019-11-15 00:32:45 -08:00
Riccardo 69d9d610a5 No tabs in mazda safety 2019-11-14 18:58:05 -08:00
Riccardo a86418c140 insignificant changes 2019-11-14 16:33:26 -08:00
Greg Hogan f239b996db single addr was better 2019-11-14 13:34:25 -08:00
Riccardo d063a18885 Hyundai safety: re-enable button spam safety check 2019-11-13 23:57:29 -08:00
rbiasini 4d1edc068b
skip tx_hook if a message is forwarded (#379) 2019-11-13 23:50:42 -08:00
Riccardo df2ff04583 bump version 2019-11-13 16:11:50 -08:00
Riccardo 168461d5e4 added fault state to health packet 2019-11-13 16:01:20 -08:00
Greg Hogan b3e1a133ae uds: better debug prints 2019-11-12 22:22:49 -08:00
Greg Hogan 68c39fb3e2 uds: no need for threads if you always drain rx 2019-11-12 18:52:41 -08:00
Riccardo 91b7c5bb77 bump Panda Ver 2019-11-11 14:30:26 -08:00
Robbe 26cb4dc48a Fixed pylint error 2019-11-09 14:24:56 -08:00
Robbe 32725cc385 Fixed misra compliance 2019-11-09 14:22:16 -08:00
Robbe e33b4beaa3 Added echo script 2019-11-07 17:45:16 -08:00
Riccardo 312ba62d43 minor comment cleanupo 2019-11-07 12:42:29 -08:00
Robbe e90897a834 Fix board detection on white 2019-11-06 15:00:07 -08:00
Riccardo 0e72c18378 always stop executing if safety mode fails to be set (suggested by jyoung8607) 2019-11-06 14:45:32 -08:00
Riccardo e8d7ed1d90 Rename function name to not confuse safety_set_mode and set_safety_mode 2019-11-06 14:30:22 -08:00
Greg Hogan ff86db6553 improve uds message processing 2019-11-06 13:50:32 -08:00
Comma Device 512ab3f2f0 except Exception 2019-11-06 21:47:18 +00:00
Comma Device 37ce507ae9 py3 all 2019-11-06 21:45:48 +00:00
Comma Device bac4d85434 dos and python3 2019-11-06 21:42:07 +00:00
Greg Hogan 501db8d199 uds drain before send and use has_obd() 2019-11-05 18:40:21 -08:00
Robbe f2cbec161e Added has_obd() to python library 2019-11-05 18:25:42 -08:00
robbederks 48e5b18208
Add SDK downloading to the build step (#314) 2019-11-04 18:35:57 -08:00
robbederks e0762c2e77
Add Python & USB API for controlling phone power (#313)
* Added interface for phone power

* Add power function in python

* Fixed struct
2019-11-04 17:26:37 -08:00
Robbe ba9fb69f65 New health packet struct also in the python libs 2019-10-31 17:08:02 -07:00
Riccardo 256d274e76 Fix Mac installation instruction per: https://github.com/commaai/panda/pull/308/files 2019-10-31 16:23:55 -07:00
Riccardo bfd8ff1b18 Update cppcheck commit with more coverage 2019-10-31 13:08:10 -07:00
Robbe b143a1cf9e Fixed Misra complaint 2019-10-31 11:58:36 -07:00