Commit Graph

2991 Commits

Author SHA1 Message Date
commaci-public
d8d3ab6c3e pre-commit: autoupdate hooks (#2071)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2025-03-01 10:32:32 -08:00
Dean Lee
2c802449fd add set_alternative_experience method to Panda class (#2168) 2025-02-27 11:13:43 -08:00
Shane Smiskol
25591f1b3a Move safety replay to opendbc (#2167)
move to opendbc
2025-02-26 23:31:41 -08:00
Shane Smiskol
d8fb6f3ca4 safety replay: use lr.first() 2025-02-26 23:27:10 -08:00
Willem Melching
a744fa7780 Move isotp.py, ccp.py and xcp.py to opendbc (#2166)
* Move ccp.py and xcp.py to opendbc

* move isotp

* more cleanup
2025-02-26 10:41:16 -08:00
Shane Smiskol
0924df1e8e Rivian: fix ignition signal overlap (#2165)
Fix Rivian ignition overlap
2025-02-24 15:03:15 -08:00
Shane Smiskol
9a68935fb1 Fix Rivian ignition (#2163)
* fix rivian ignition

* rm

* fix

* wtf copilot
2025-02-24 12:44:30 -08:00
Shane Smiskol
e08311bb4d Safety replay: support Rivian 2025-02-24 02:51:14 -08:00
Kacper Rączy
7f4af6e2c8 safety_replay: opendbc libsafety + msg sorting (#2162)
* Fix safety_replay

* Sort
2025-02-23 20:39:36 +01:00
Lukas
084a40a46f Rivian: add CAN ignition (#2157)
Rivian CAN ignition
2025-02-21 18:11:15 -08:00
Shane Smiskol
66bd9e8f25 Change safety model imports (#2158)
* fix test_pandad

* fix all the imports
2025-02-21 17:36:23 -08:00
Shane Smiskol
8bd4e2d2dc bump opendbc ref to master 2025-02-19 17:19:54 -08:00
Shane Smiskol
9804e2607e Move car safety modes to opendbc (#2143)
* move safety tests

* move libsafety

* move safety

* remove safety test job

* fix compilation

* update ref

* rm safety mutation test

* fix misra test

* no safety here

* fix build for both local and docker

* already tested

* fix misra mutation

* move Safety Model readme section to opendbc

* and panda

* fix

* in

* not here

* not here
2025-02-19 17:19:18 -08:00
Lukas
ebdc376ade Safety for Tesla Model 3 / Model Y (#2036)
* wip model3

* master

* tesla model 3 / y

* prevent tesla to reverse

* remove can 1 from safety

* use DI_vehicleSpeed

* - add APS_eacMonitor to TX
- use DI_state as a standstill signal

* block eacMonitor

* fix tesla safety tests

* fix tesla safety tests

* add generic_rx_check for eacMonitor

* fix tests

* consistent ordering of common user brake test setup

* Tesla: Panda safety update (#2075)

* - match "vehicle_moving" with opendbc
- allow to cancel

* remove comment

* update _vehicle_moving_msg

* remove redundant condition

* whoops

* update ref

* spacing!

* long behind ALLOW_DEBUG

* consistent styling

* ?

* misra and clean up

* divide instead

* double (())

* more stylistic

* this is more clear

* always check aeb

* this test catches it

* it should test angle steering in both modes?

* we weren't testing long at all, and ALSO PYTEST SILENTLY SKIPS CLASSES WITH MISSING ABSTRACT METHODS WTF

* finalize safety tests

* update opendbc to master

* ltl

* revert this

* rm conftest

* loop this

---------

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2025-02-18 12:42:38 -08:00
Shane Smiskol
b82c327de7 Tesla: update ignition signal for Model 3/Y (#2153)
update ignition signal
2025-02-16 21:57:08 -08:00
Shane Smiskol
2a4d3a9923 Remove hw type from safety tests (#2151) 2025-02-12 21:43:07 -08:00
Shane Smiskol
b2b28f9326 split libpanda library (#2149)
* duplicate libpanda

* rename

rename

* update libpanda to remove safety helpers

* libpanda -> libsafety

* remove some stuff in libsafety

* rm some stuff from safety.c

* libc

* fix

* dont include safety helpers
2025-02-12 21:24:26 -08:00
Shane Smiskol
deeb4840dc Fix opendbc hitl test (#2147)
needs opendbc
2025-02-11 23:23:05 -08:00
Shane Smiskol
978ee19005 Missing Safety references (#2146)
* forgot these

* fix that
2025-02-11 21:03:10 -08:00
Shane Smiskol
d3508ff042 Move safety constants to opendbc (#2145)
* move to opendbc

* all passing

* do the rest

* fix

* and another

* order

* and update ref to master
2025-02-11 20:14:44 -08:00
Shane Smiskol
72a99e9e9d Rename to SafetyFlags (#2144)
* safety flags

* update ref

* fix ltl
2025-02-11 19:56:29 -08:00
Eric Brown
e7940cc3e9 Remove car specific flags (#2116)
* Subaru: combine panda flags

* Remove car-specific panda flags

* Rename usages in tests

* update opendbc ref

* ?

?

* fix ltl

* order

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2025-02-10 19:10:29 -08:00
Shane Smiskol
c73bc7bfe8 new opendbc debug api (#2141) 2025-02-10 11:22:56 -08:00
Lukas
7168c58fae Fix query_fw_versions.py (#2140)
remove debug param
2025-02-10 09:55:13 -08:00
Shane Smiskol
3ff97305c5 fdcan: rate limit CAN core reset (#2137)
* rate limit can core resets

* overflow protection

* U
2025-01-30 13:21:18 -08:00
Shane Smiskol
edf042883e jungle: fix transceiver typo (#2133)
jungle: transceiver typo
2025-01-29 14:11:15 -08:00
Comma Device
d75e4ee3ed sound interrupt rate bump 2025-01-29 16:01:12 +00:00
Robbe Derks
c5c194ff99 Cuatro DFSDM1 mic demodulation (#2077)
* wip

* this works!

* pin todo

* SAI1 isn't used

* make it compile after rebase

* fix gpio

* use register functions and clean up misra

* add power management for mic

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-01-29 16:51:46 +01:00
Shane Smiskol
12905886ba Ford: long safety is default for CAN (#2128)
* ford long safety

* same with ford_longitudinal

* Update tests/safety/test_ford.py
2025-01-22 20:18:26 -08:00
Shane Smiskol
73dbcaa11f Ford: common tx msg cleanup (#2129)
* nice and clean!

* clean up
2025-01-22 20:06:45 -08:00
Robbe Derks
3597071019 Increase ADC accuracy (#2126)
increase sampling time and reduce oversampling
2025-01-22 17:56:22 +01:00
Jason Wen
9066088edf Dockerfile: opendbc: small fixes and use the latest ref (#2124)
* Dockerfile: opendbc: use the latest ref

* use new generated dbc

* fix mypy
2025-01-19 18:00:25 -08:00
Shane Smiskol
045fc443ab remove uds from panda (#2121)
* remove uds from panda

* rm

* rm
2025-01-13 00:44:22 -08:00
Adeeb Shihadeh
a8f21d9273 update cppcheck to 2.16 (#2120) 2025-01-12 15:58:23 -08:00
Eric Brown
6ee9c8d85a Auto-fix ruff errors in uds.py (#2118) 2024-12-22 12:30:08 -08:00
Adeeb Shihadeh
4ca9905011 cuatro: enable SOM reset 2024-12-22 09:56:44 -08:00
Eric Brown
8dc5435331 Subaru: combine platform panda flags (#2115)
Subaru: combine panda flags
2024-12-18 14:17:18 -08:00
Adeeb Shihadeh
dd76e663d2 Switch to our new USB VID (#2112)
Co-authored-by: Comma Device <device@comma.ai>
2024-12-16 13:31:26 -08:00
Robbe Derks
12ca145e4f Double DAC buffer (#2110)
* also double buffer DAC buffer

* fix misra?

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-12-15 19:32:53 -08:00
Adeeb Shihadeh
9272d4b729 Reduce heartbeat beeper false positives (#2104) 2024-12-12 15:56:43 -08:00
Jason Wen
c60941ca98 Hyundai CAN: Refactor forward hooks for blocked messages (#2046) 2024-12-11 15:11:03 -08:00
Jason Wen
dfa033d807 Dockerfile: opendbc: symlink fix and use the latest ref (#2103) 2024-12-11 14:35:55 -08:00
DevTekVE
bedee405d6 test: Allow running test_misra.sh easy on macos (#2096)
Allow running test_misra.sh easy on macos
2024-12-09 17:34:04 -08:00
Adeeb Shihadeh
0016c33e7e cuatro: remove beeper (#2100) 2024-12-09 17:33:36 -08:00
Robbe Derks
c7cc2deaf0 Cuatro: no ir (#2093)
no ir
2024-11-29 17:41:03 +01:00
Robbe Derks
4dc203376a more open drains (#2091)
also open drain

Co-authored-by: Comma Device <device@comma.ai>
2024-11-29 17:37:33 +01:00
Adeeb Shihadeh
5761ab58ea what was that doing there? 2024-11-22 19:33:04 -08:00
Willem Melching
cfbc3ff835 Ensure auto switching FD is off in Python (#2087) 2024-11-22 10:29:11 -08:00
Maxime Desroches
b770745342 ci: split MISRA linter and MISRA mutation (#2086)
* sep

* this
2024-11-21 11:48:02 -08:00
Adeeb Shihadeh
2fbf0c5ff8 fix indendation 2024-11-21 11:07:57 -08:00