Jason Young
d2d683a04c
fix test issues in xcp.py ( #1882 )
...
remove shebang, fix typing
2024-02-20 11:41:48 -08:00
Greg Hogan
73e4733bfb
Universal Measurement and Calibration Protocol (XCP) python library ( #760 )
...
* first few commands
* fix transport_version
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* add more xcp functions
* more commands
* configurable timeout
---------
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2024-02-20 10:59:05 -08:00
Aryan
b4442a7c93
enable misra-c2012-10.3 ( #1852 )
...
* enable misra-c2012-10.3
* fix that
* cleanup
* little more
* one more
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-18 11:56:44 -08:00
Adeeb Shihadeh
546db7b73b
set cppcheck platform
2024-02-18 11:43:25 -08:00
Jason Young
00fab5e18e
refactor GET_BIT to be MISRA friendly ( #1877 )
...
* refactor GET_BIT to be MISRA friendly
* better fix for ternary op
* remove whitespace that crept in
2024-02-18 11:03:30 -08:00
Adeeb Shihadeh
6eed036473
(almost) enable cppcheck unusedFunction ( #1875 )
...
* remove some unused
* more
* kinda works
* rest are false positives
* disable for now
* add back exhaustive
2024-02-17 14:16:15 -08:00
Adeeb Shihadeh
997b075349
misra: catch more cppcheck errors that don't change exit code
2024-02-17 12:53:28 -08:00
Adeeb Shihadeh
b66eaa2beb
HITL tests: no xdist ( #1874 )
2024-02-17 12:32:48 -08:00
Adeeb Shihadeh
7bfba5eff2
remove STM32F2 sources ( #1873 )
2024-02-16 23:00:45 -08:00
Adeeb Shihadeh
c076a9f2f6
remove pedal fw ( #1872 )
...
* remove pedal fw
* little more
* one more
* and tests
* rest of it
* little more
* fix linter
* more fix
2024-02-16 22:58:01 -08:00
Adeeb Shihadeh
39671c3dd6
remove 12.2 suppression added in 3cd0023
2024-02-15 13:52:39 -08:00
Robbe Derks
3cd0023bc1
cuatro power readout ( #1869 )
...
* refactor voltage / current reading
* fix bug and add readout to cuatro
* fix misra?
* just suppress then
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-02-15 13:49:06 -08:00
Shane Smiskol
0a1ec8580e
Toyota: radar disable safety ( #1611 )
...
* toyota: add safety for tester present
* block ACC_HUD
* check stock ECU
* add test
* and now pass test
* check ACC_CONTROL for relay malfunction
* not needed
* split tx msgs, test_panda_safety_tx_cases was really helpful!
* now don't need this
* 0x343 is expected to be on bus 0 if stock long
* better as cases
* swap
* always block pre_collision if stock (used for dsu removal)
* do tx msgs
* fix comment
2024-02-14 23:22:06 -08:00
Shane Smiskol
a037eebf38
Toyota: longitudinal msgs behind safety param ( #1871 )
...
* long is fully behind safety param
* fix
* spacing
2024-02-14 22:16:51 -08:00
Shane Smiskol
27768f5ef3
Toyota: check ACC_CONTROL for relay malfunction ( #1870 )
...
* check acc relay malfunction
* do what they do
2024-02-14 21:51:42 -08:00
Aryan
ef68fea95e
Make MISRA results consistent across cppcheck runs ( #1867 )
...
* fixed uninitialized data error
* update ci
* revert old changes
* add styling
* switch misra.py to misra
* remove cache from mutation.py
* works on local
* jobs increased to 8 for mutation test
* works locally
* add env variable back
* removed env variable
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-14 08:35:14 -08:00
Jason Young
be7c4059a2
VW MQB: RxChecks for GRA_ACC_01 ( #1866 )
2024-02-14 08:25:03 -08:00
Shane Smiskol
aca33b83a4
tests: one file for safety and coverage tests ( #1865 )
...
* one file for all tests
* clean up
* unreachable
* Revert "unreachable"
This reverts commit 4b792b1f9b
.
2024-02-13 17:27:19 -08:00
Shane Smiskol
a99387d52d
pytest improvements ( #1864 )
...
* move these to pyproject so you can do pytest .
* add comment for bug
* add comment for bug
2024-02-13 16:57:45 -08:00
Shane Smiskol
e41c157a24
fix pytest loop ( #1863 )
...
* fix pytest loop
* auto
* Revert "auto"
This reverts commit 8fa51c8e98
.
2024-02-13 16:48:17 -08:00
Jason Young
87f87d49ac
invoke system browser for coverage reports ( #1862 )
2024-02-13 14:28:21 -08:00
Aryan
54459e694e
update cppcheck ( #1859 )
...
* update cppcheck
* Update tests/misra/install.sh
* delete cppcheck cache
* remove misra 5.8 erroors
* fixed uninitialized data error
* suppress misra-c2012-2.3 and misra-c2012-2.4
* reinstate cache to fix mutation test
* rerun for mutation test
* increase timeout for mutation test
* styling
* comments + variable name changes
* Update tests/misra/install.sh
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update install.sh
* more variable name changes
* condition on defining CANPacket_t
* just cherry pick
* fix build
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-02-10 14:50:36 -08:00
dzid26
32301a855a
USB-C cable orientation clarification ( #1860 )
2024-02-08 22:33:26 -08:00
Adeeb Shihadeh
ad0f372ada
cuatro can fixes ( #1858 )
...
* more can
* other af
* cleanup
* misra fix
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-02-06 22:29:42 -08:00
dzid26
04c5a00a9e
Board chip type ( #1853 )
...
Board chip type title
2024-02-06 11:15:46 -08:00
dzid26
5c5287dabb
Fix CAN comment ( #1854 )
2024-02-06 11:15:22 -08:00
Adeeb Shihadeh
94418a0d93
pre-commit: autoupdate hooks ( #1857 )
...
Update pre-commit hook versions
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-02-06 11:14:58 -08:00
Adeeb Shihadeh
f48fc21a17
cuatro: fix FDCAN2 ( #1851 )
...
Co-authored-by: Comma Device <device@comma.ai>
2024-02-04 15:11:52 -08:00
Ruben Medina
3bd980eb39
enable misra-c2012-17.3 ( #1806 )
2024-02-03 23:20:30 -08:00
Adeeb Shihadeh
93a06f1257
remove HW GMLAN support ( #1848 )
2024-02-03 23:18:33 -08:00
Adeeb Shihadeh
5ab46d52fd
set cppcheck level to exhaustive ( #1846 )
2024-02-03 15:28:15 -08:00
Comma Device
457e3b262d
fix enable_can_transceiver
2024-02-03 01:36:15 +00:00
Adeeb Shihadeh
bca1162ae9
cuatro: setup CAN ( #1836 )
...
* cuatro: setup CAN
* fix misra
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-01-30 13:25:22 -08:00
Adeeb Shihadeh
3afab68196
pre-commit: autoupdate hooks ( #1844 )
...
Update pre-commit hook versions
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-01-30 13:17:28 -08:00
Shane Smiskol
ec17f75efc
ELM safety: allow GM diagnostic camera address (0x24B) ( #1842 )
...
* allow 0x200 addresses for Bolt camera
* fix test
* only gm address
* think 15765-2 is the source
* test the data
* label
* should be here
* already labeled
* use constant!
* update table
* fix misra
* Revert "update table"
This reverts commit 71ef3fde7c
.
* new cppcheck gets this
2024-01-29 20:23:57 -08:00
Adeeb Shihadeh
a5604de24f
ensure cppcheck is always the right version ( #1843 )
2024-01-29 20:19:50 -08:00
Shane Smiskol
266d4573b7
safety: test with default pytest dist (load) ( #1840 )
...
* faster safety test
* wondering how fast this is
* 4 threads too?
2024-01-29 02:03:35 -08:00
Willem Melching
eb9b0df727
Reset baudrate when connecting from Python ( #1837 )
...
* Reset baudrate when connecting from Python
* unused
2024-01-25 13:17:19 -08:00
Adeeb Shihadeh
d6b5dbb3dc
Revert "detect 723 live ( #1835 )"
...
This reverts commit 9d0caa1935
.
2024-01-24 15:39:11 -08:00
Adeeb Shihadeh
9d0caa1935
detect 723 live ( #1835 )
...
* detect 723 live
* cleanup
* more precise
* more precise
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-01-24 14:48:32 -08:00
Comma Device
b39ef1dbfe
fix 723 init
2024-01-24 21:57:28 +00:00
Adeeb Shihadeh
a0ac220b0c
it's cuatro
2024-01-24 13:07:47 -08:00
Adeeb Shihadeh
a2d5d8ad07
stm32h723 ( #1832 )
...
* booting
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai>
2024-01-23 23:15:59 -08:00
Adeeb Shihadeh
7c613fdcb5
remove redundant board_type ( #1833 )
...
* remove redundant board_type
* fix jungle build
2024-01-23 22:08:22 -08:00
Adeeb Shihadeh
c754171000
remove red panda v2
2024-01-23 19:03:21 -08:00
Adeeb Shihadeh
82df97a6df
pre-commit: autoupdate hooks ( #1831 )
...
Update pre-commit hook versions
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2024-01-23 10:40:42 -08:00
Adeeb Shihadeh
c5e79403a8
remove unused cnt
2024-01-21 16:22:17 -08:00
Ruben Medina
7d99cb2ef3
enable misra-c2012-8.2 ( #1829 )
2024-01-21 16:19:16 -08:00
DevTekVE
df030a9ca8
Adding compilation_db to panda builds ( #1828 )
2024-01-21 16:16:53 -08:00
Ruben Medina
80731c0aa7
enable misra-constParameterCallback ( #1827 )
2024-01-20 22:22:11 -08:00