Commit Graph

232 Commits

Author SHA1 Message Date
rbiasini
d68356b924 Honda Nidec: fwd stock AEB (#257)
* Honda Nidec: fwd stock AEB

* bug

* correct aeb bit

* typo

* Revert "typo"

This reverts commit d424198b1fbc5a783c39b5bdd7d034865ed61a83.

* typo

* bug fix

* don't have tx hook blocking aeb messages from stock system

* typo

* fwd stock brake even if they are the same

* only stop forwarding aeb when aeb flag clears

* Fix safety tests

* Added fwd safety tests

* tiny bit more readable
2019-08-30 20:15:03 -07:00
robbederks
6f532c6d51 Black panda Jenkins (#256)
* Jenkins test refactor and black panda addition

* Added HW types needed by previous commit

* Fixed ignition interrupts when not on EON build

* Added functions for load switches

* More test scripts for black panda

* Added NONE power mode to the code

* Fixed race condition when setting GPIO pins was interrupted.

* Added relay test script

* Fixed flashing with critical sections and GPS load switch

* Fixing critical depth after reboot

* Made the loopback test asserting

* Made critical depth a local variable to avoid race conditions

* Added GPS to power savings mode

* Fixed DFU mode on white panda and bumped version

* Fixed PEDAL_USB compilation error

* Fixed misra compliance of new critical depth code

* Cleaned up heartbeat logic in the testing code. Re-added ALL_CAN_BUT_MAIN_SILENT. Bumped version. Improved critical section code.

* Fixed DFU flashing (once again)

* Fixed VERSION

* Added relay endurance test

* Changed to alloutput on ELM mode for fingerprinting.

* Fixed minor remarks
2019-08-28 12:57:42 -07:00
Riccardo
36067e01c7 Honda safety: fixed incorrect brake decoding. Due to the specific limit of 255, this change does not affect the safety behavior 2019-08-22 20:29:44 -07:00
Robbe
996dc4049a Added heartbeat to black loopback testing 2019-07-23 18:50:02 -07:00
rbiasini
59f5813173 Black (#254)
* late usb

* Added type support for black panda

* Added harness presence and orientation detection

* harness relay driving code

* Added intercept support in black panda code. Switched around can0 and can2

* Disable ADCs after orientation detection. Ignition interrupts via harness

* WIP: Hardware abstraction layer + black panda bringup

* Fixed bootstub build

* Fixed bootstub for pedal

* Fixed infinite loops

* Got CAN buses working on white again

* Fixed pedal build and black can interfaces

* Got CAN buses working on black panda

* Finished loopback test for black panda

* Erase all flash sectors on the panda. Increased binary limit. Added extra python functions.

* Fixed python

* Made new code MISRA compliant

* Cleaned up ignition. Fixed build

* Fixed health packet

* Fixed CAN mode on black bug. Changed OBD to switch on ELM mode

* Fixes from Github review

* Fixed MISRA issue for pedal

* Fixed failing gmlan tests

* ELM327 safety: allow diagnostic on all buses

* Cleaned up EON relay code

* delete only 3 sectors instead of 11 to allow a new build to be flashed. Much faster to flash

* Removed CAN only can0 output mode. Does not make sense on black panda due to reversibility issues.

* Added heartbeat logic for EON code on panda. Go to NOOUTPUT if EON does not send a heartbeat for 5 seconds.

* Remove all CAN buses live on EON startup. Shouldn't be necessary to have this separate case

* Formatting

* Added file I forgot to push

* Added heartbeat to testing code to make sure EON tests don't fail. Should probably find a better way to do this though. Heartbeat thread didn't work, concurrent USB connection issues...

* Safety: support black panda for Honda Bosch

* Disable OBD2 if setting to NOOUTPUT mode

* Run safety tests for all hw_types

* Fail test if subtest fails

* fix safety tests
2019-07-23 15:07:06 -07:00
rbiasini
e49d0dbbd6 Pedal: use avg between tracks (#253) 2019-07-15 13:15:22 -07:00
Riccardo
c597dcc897 VERSION update after health packet changes and minor misra test change 2019-07-12 12:04:21 -07:00
rbiasini
01072bec0b Misra 11.x: pointer usage. (#250)
* RDLR, RDHR gone from safety

* back at not failing misra safety

* fix safety tests

* did not mean this

* Use get-bytes in pedal too

* Ignore Misra 11.5 and Fix 11.8 violaitons

* Fix 11.3 violations

* Neglect Misra 11.4, fix pointer issue in bootstub and rutn on Werror for pedal builds

* Fix Misra 11.6: can't assign number to void pointer

* Fix test after changing honda_moving name

* for loop is better

* Fix bugs from fbck
2019-07-10 20:56:03 -07:00
Riccardo
ce1daf2062 Misra check only done for EON config 2019-07-10 12:02:50 -07:00
Riccardo
04756a037f Turning back Misra check: unvoluntarily change 2019-07-09 16:18:44 -07:00
Riccardo
b983cc8fe6 Re-wrote test_misra.sh 2019-07-09 14:37:26 -07:00
Riccardo
06ee8bd2d2 Ignore Misra 5.4 until cppcheck bug (?) is fixed 2019-07-08 19:30:58 -07:00
Riccardo
4be858224f Update cppcheck commit and pass predefined params to avoid impossible combinations of configs 2019-07-08 18:20:00 -07:00
Riccardo
1cd34e5645 Explicitly set the define and undefine for unknown configs in misra checks 2019-07-08 15:32:55 -07:00
Riccardo
c97d60be64 Removed bad language 2019-07-08 12:05:08 -07:00
Riccardo
b031480a7f Missed adding Dockerfile 2019-07-08 12:03:13 -07:00
Riccardo
91ff6bb214 Run language checker in CI 2019-07-08 12:01:00 -07:00
Riccardo
205ec342ad Improved language checker 2019-07-08 01:00:14 -07:00
Riccardo
f7bbab0723 Language checker test 2019-07-08 00:50:32 -07:00
rbiasini
1f40d1e6a6 Misra pedal (#245)
* Fix misra on pedal
2019-07-07 16:59:31 -07:00
Riccardo
a4554e3e69 Ignore advisory Misra 19.2: the union keyword should not be used 2019-07-07 16:31:06 -07:00
Riccardo
ba68569216 Removed build strict test and enabled -Werror flag 2019-07-07 14:46:03 -07:00
Adeeb Shihadeh
da11f0fa0c safety replay: update openpilot-tools after logreader fix 2019-07-05 16:31:21 -07:00
Riccardo
fc8b9e49bd Cppcheck: also check pedal 2019-07-04 02:58:17 -07:00
Adeeb Shihadeh
79e9735ae1 rename 5_wifi_udp.py 2019-07-03 20:02:53 -07:00
Riccardo
11257e79a5 Ignore test 5_wifi_udp.py_ignore: too unreliable for now 2019-07-02 18:18:29 -07:00
Riccardo
3a6cd2930b wifi threshold perc back to 20%. Problem wasn't this. 2019-07-01 20:35:29 -07:00
Adeeb Shihadeh
d92a035285 faster docker build for safety replay 2019-07-01 13:28:02 -07:00
Riccardo
3e9469b3ee Fixing tests after min->MIN change 2019-06-30 14:19:31 -07:00
Riccardo
c4311a7fee Wifi saturation test: allow 15 instead of 20 to avoid false positive failures 2019-06-24 20:11:32 -07:00
Adeeb Shihadeh
71877bcfd7 update safety replay after openpilot_tools rename 2019-06-24 14:04:46 -07:00
rbiasini
e2d781380a Strict compiler (#222)
have no Wall warnings from the strict compiler and enforcing it in the regression test.
2019-06-24 10:25:30 -07:00
Riccardo
da59e0cb9a Fix toyota tests 2019-06-20 18:41:41 -07:00
Riccardo
c6ec11e17f fixed tab 2019-06-17 20:06:14 -07:00
Riccardo
0a77dffc9a change test and see if we get a failure now 2019-06-17 19:50:03 -07:00
Riccardo
6cd5a4fcd0 Update cppcheck commit in test_misra.sh 2019-06-17 18:54:05 -07:00
Riccardo
05487e29d7 More complete Misra check on safety code (better than running cppcheck on sfaety.h only, with broken dependencies) 2019-06-17 14:27:01 -07:00
rbiasini
a3f65d66e9 capitalize MIN and MAX macros (#220) 2019-06-17 13:48:14 -07:00
quillford
19d1e41eed WIP: enhance safety replay test (#211)
* safety replay: add msg length

* add support for individual segments to safety replay

* safety replay: extend segment support to rest of safety modes

* safety replay: add debug flag

* safety replay: return if no steering msgs in segment mode

* minor refactor of safety replay
2019-06-14 16:27:15 -07:00
rbiasini
78308c0bc5 All 14.4 violations are gone (#213) 2019-06-12 20:12:48 -07:00
rbiasini
67b831ef45 Misra 15 5 (#210)
Remove 15.5 violations
2019-06-12 18:18:07 -07:00
rbiasini
57a6c493bb Toyota gas pressed: reconcile panda code with openpilot (#212) 2019-06-12 17:51:47 -07:00
Riccardo
37576ef3b4 Allow inline suppress for the cppcheck 2019-06-12 13:16:23 -07:00
Riccardo
55679532aa Fix Misra 20.1 violations: Moved safety declarations in its own header and qdded optional input to run misra tests for safety code only. 2019-06-12 06:35:47 -07:00
rbiasini
23461a176c Misra 12 1 safety (#209)
* this gets rid of all 12.1 violations
2019-06-11 21:23:48 -07:00
Riccardo
242b3305fe Added fwd hook coverage test for Cadillac and created default_fwd_hook instead of nooutput and alloutput, which were teh same 2019-06-11 19:50:12 -07:00
Riccardo
a605b5720e Also covering fwd hook for Subaru and GM now 2019-06-11 19:37:18 -07:00
Riccardo
133269a1a4 Added fwd test coverage for Toyota, Hyundai and Chrysler too. Removed replay tools for Chrysler, as a generic replay tool has been recently added 2019-06-11 19:24:08 -07:00
Riccardo
a4653e2d7f Added fwd hook coverage to safety regression tests 2019-06-11 18:16:48 -07:00
quillford
cd20d123c4 refactor tests/safety to use generic hooks (#208)
* refactor tests/safety to use generic hooks

* cleanup refactor

* removed dead code
2019-06-11 01:31:00 -07:00