Justin Newberry
06feb083cf
replace pytest-timeouts with pytest-timeout ( #1820 )
...
* one timeout
* timeout
2024-01-18 14:44:32 -08:00
Aryan
a902a19ead
enable misra-c2012-21.2 ( #1819 )
...
* enable misra-c2012-21.2
* Add suppressions on memset and memcpy
* revert that
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-18 14:29:01 -08:00
Ruben Medina
5ddc0cf04f
enable misra-c2012-21.14 ( #1810 )
2024-01-18 14:10:17 -08:00
Adeeb Shihadeh
41b008274b
pre-commit: autoupdate hooks ( #1789 )
...
* Update pre-commit hook versions
* fix
---------
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-01-17 11:35:20 -08:00
Justin Newberry
13e0d3d4d7
replay_drive: fix reference to multilogiterator ( #1812 )
...
* fix ref
* segment
* fix ruff
* mypy
* fix
2024-01-17 11:33:45 -08:00
Ruben Medina
7ab3fcf5d2
enable misra-c2012-10.7 ( #1804 )
...
* enable misra-c2012-10.7
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-16 16:52:36 -08:00
Ruben Medina
53efbbbc98
enable misra-c2012-21.1 ( #1809 )
...
* enable misra-c2012-21.1
* comment
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-16 16:46:30 -08:00
Aryan
c118c2887d
enable misra-c2012-2.7 ( #1813 )
...
* cpp-check suppress
* enable misra-c2012-2.7
2024-01-16 16:02:48 -08:00
Hoang Bui
7e8b829fe8
enable misra-c2012-2.3 & misra-c2012-2.4 ( #1801 )
...
* enable misra-c2012-2.3
* enable misrac 2.4
* delete
* revert
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-16 15:59:15 -08:00
Aryan
369fd8c6d5
enable misra-c2012-7.2 ( #1807 )
...
* misra-c2012-7.2
* removed misra-c2012-7.2 from suppressions.txt
2024-01-16 15:49:13 -08:00
Adeeb Shihadeh
bc6eaf358e
enable misra-c2012-14.2 ( #1815 )
...
* enable misra-c2012-14.2 (#1805 )
* true
* while
---------
Co-authored-by: Ruben Medina <samrum@gmail.com>
2024-01-16 15:49:04 -08:00
Adeeb Shihadeh
6334ded34a
Revert "enable misra-c2012-14.2 ( #1805 )"
...
This reverts commit a8bc525d92
.
2024-01-16 15:39:30 -08:00
Ruben Medina
1bdefa9133
enable misra-c2012-8.6 ( #1808 )
2024-01-16 14:17:21 -08:00
Ruben Medina
a8bc525d92
enable misra-c2012-14.2 ( #1805 )
2024-01-15 21:20:39 -08:00
Ruben Medina
8c2b50fa2f
enable misra-c2012-10.1 ( #1803 )
2024-01-15 21:14:52 -08:00
Ruben Medina
07caaf6cfb
enable misra-c2012-5.6 ( #1802 )
2024-01-15 21:14:22 -08:00
Hoang Bui
d854abedff
Enable cache for MISRA mutation test ( #1799 )
...
* work with 1 cache
* enable cache in mutation
* name to hash
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-01-15 14:40:19 -08:00
Aryan
6ae65db44a
enable misra-c2012-5.8 ( #1800 )
2024-01-15 10:38:46 -08:00
Hoang Bui
d66161966d
Enable caching in test_misra ( #1798 )
...
* enable cachinng
* hased args
* md5
* cleanup
2024-01-14 15:53:59 -08:00
Hoang Bui
817d68f6a6
enable misra-c2012-10.4 ( #1796 )
...
* enable misrac-10.4
* changes
* cleaner
2024-01-13 15:49:56 -08:00
Greg Hogan
3ef9c3f9ef
remove windows driver ( #1793 )
2024-01-13 14:05:10 -08:00
Adeeb Shihadeh
08ca10e91c
add AEB enable flag ( #1791 )
2024-01-11 15:37:43 -08:00
Adeeb Shihadeh
f64ba24685
enable misra-c2012-2.2
2024-01-09 22:03:28 -08:00
Adeeb Shihadeh
734bf0979c
update cppcheck to 2.13 ( #926 )
...
* update
* new table
* start with this
* speedup
* clean up
2024-01-09 21:28:12 -08:00
Adeeb Shihadeh
9270848da8
merge misra and cppcheck runs ( #1790 )
2024-01-09 20:04:44 -08:00
Jason Young
2a0536c631
VW MQB: Safety update for EA timeout fix ( #955 )
2024-01-09 19:20:46 -08:00
John Belmonte
f886918c87
README typo ( #1788 )
2024-01-08 13:53:57 -08:00
Adeeb Shihadeh
d0184f7266
pre-commit: autoupdate hooks ( #1784 )
...
Update pre-commit hook versions
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-01-04 15:17:24 -08:00
Justin Newberry
20722a5946
Subaru: cruise_rpm and cruise_throttle are 13 bits ( #1786 )
...
* fix cruise throttle
* and es_status
* bump opendbc
2023-12-29 19:25:02 -05:00
Eric Brown
0bcaa73d2a
Sort output of can_bit_transition script numerically ( #1785 )
2023-12-29 11:32:37 -08:00
Hoang Bui
114b85a649
CI: Translate abspath to relpath for build. ( #1783 )
...
relpath sconscript
2023-12-22 10:16:09 -08:00
Adeeb Shihadeh
85b4232b35
pre-commit: autoupdate hooks ( #1782 )
...
Update pre-commit hook versions
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-12-21 21:46:42 -08:00
Shane Smiskol
6e645d2d33
safety: fully reset dynamic rx check fields ( #1767 )
...
* stash
* clean up
* clean up
* more clean up
* just status
* status
* does nothing
* not here
2023-12-15 21:59:19 -08:00
Shane Smiskol
3f6f82616b
Honda: reset prev brake switch ( #1781 )
...
we should be resetting this!
2023-12-15 21:40:19 -08:00
Justin Newberry
7e2b312fa8
helpers: get last vehicle speed ( #1777 )
...
get last speed
2023-12-15 14:37:28 -08:00
Shane Smiskol
5b41a63ae5
Ford: check predicted gas ( #1776 )
...
* check pred value
* test
2023-12-15 00:01:17 -08:00
Shane Smiskol
bb75afc84e
safety: add safety param for gas interceptor ( #1735 )
...
* some refactoring still needing to be done here
* 50hz
* set rx checks
* tx msgs
* test
* fix
* forgot to check this since it's static now
* enable_gas_interceptor
* more
* remove int funcs since are common
* generic!
* not generic
* need to set counter now
* set_enable_gas_interceptor not needed
* already reset in safety init
* fix test
* remove gas_interceptor_detected (partly)
* oof need for hjonda too
* edit structs
* more honda (still broken)
* fix typo
* shift these down
* can also make this extensible
* stash
* defining classes is much simpler, maybe in future we will have some sort of wrapper after some more thought
* remove create_interceptor_test now
* add lta interceptor
* clean up print
* clean up
* once
* type hint
* rm
* no interceptor with stock long + good test
* add interceptor counter to honda
* need alt interceptor + set rx checks for honda
* we were never testing button enable with nidec + interceptor!
honda almost all passing
* these fixes make sense
* clean up
* better
* clean up test cov
* clean up
* not needed
* fix tx msgs
* clean up
* cppcheck
* fix
* unnecessary
2023-12-14 15:22:17 -08:00
Shane Smiskol
30647d6604
safety tests: set gas interceptor counter ( #1775 )
...
* safety: check interceptor msg counter (#1738 )
* toyota: check interceptor counter
* add counters and check rx
* honda: check counter
* clean up
* revert
* typing
2023-12-13 19:32:16 -08:00
Shane Smiskol
e51411344b
safety tests: clean up gas interceptor detected
2023-12-12 22:58:09 -08:00
Shane Smiskol
294992ac2c
safety tests: rename gas interceptor test ( #1774 )
...
* more appropriate name for gas interceptor
* safety
2023-12-12 22:15:36 -08:00
Louie Lu
a88fe8c883
examples: Make can_bit_transition.py support can_logger.py ( #1198 )
...
* Add Time field to can_logger.py
* Update can_bit_transition to support can_logger format
* Fix csv opening
Using `rb` to open csv file will throw the exception:
_csv.Error: iterator should return strings,
not bytes (the file should be opened in text mode)
Fix it with `r` and `newline=''`
2023-12-10 11:25:25 -08:00
Adeeb Shihadeh
3e63e66256
rm .dockerignore
2023-12-10 11:17:19 -08:00
Adeeb Shihadeh
d5983833d2
Docs update ( #1769 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
2023-12-10 11:14:53 -08:00
Jason Wen
a6b76dfda0
Hyundai CAN-FD Longitudinal: enable for ICE camera-SCC cars (non-HDA2) ( #1671 )
...
* allow ice camera scc longitudinal
* Merge commaai#30021
* test
* clean up
* clean up 2
* some test work
* re-use existing test for radar-scc for now
* clean up
* clean up
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-12-09 17:37:28 -08:00
Shane Smiskol
ff49666893
Hyundai CAN FD: radar-SCC longitudinal test ( #1771 )
...
* this rightly fails
* now safety
2023-12-09 16:55:46 -08:00
Adeeb Shihadeh
d066ae70cd
ensure MISRA coverage table is always up to date ( #1772 )
...
* ensure MISRA coverage table is always up to date
* update comment
2023-12-09 15:48:33 -08:00
Adeeb Shihadeh
1e1aa42921
move this to commaai/neo
2023-12-09 14:54:16 -08:00
Adeeb Shihadeh
12d326c110
parallelize misra mutation tests ( #1768 )
...
* parallelize misra mutation tests
* timeouts
2023-12-09 14:32:40 -08:00
Shane Smiskol
a5753a2077
safety helpers: hide debug print for now
2023-12-09 02:28:10 -08:00
Shane Smiskol
cf108cd4cc
safety: full coverage ( #1750 )
...
* stash
* if x > xy.x[0], then subsequent x < xy.x[i+1] enforces it is monotonic, or uses last y
* rm
* test safety tick
* coverage: include safety.h
* car-only test
* MAX
* op
* add safety_config_valid
2023-12-09 02:27:29 -08:00