Commit Graph

1087 Commits

Author SHA1 Message Date
Jason Wen
9542b19a40 Merge branch 'upstream/panda/master' into sync-20260111 2026-01-19 20:25:56 -05:00
Adeeb Shihadeh
ce1b6a67e4 fix up fan HITL test (#2317)
* fix up fan HITL test

* cleanup

* times two

* even simpler

* append

* one more...

* speed it up now

* oops
2026-01-12 15:59:49 -08:00
Jason Wen
4cc222c634 Merge branch 'upstream/panda/master' into sync-20251213
# Conflicts:
#	python/__init__.py
2025-12-13 01:00:11 -05:00
Jason Wen
5dc009be50 Merge branch 'upstream/panda/master' into sync-20251114 2025-11-16 02:40:37 -05:00
Jason Huang
515ac45fc0 Add comma body firmware (#2291)
* motors

* can

* cleanup unused stuff

* initial clean

* more clean

* remove integral and derivative clamps, revert pwm driver to original

* remove integral and derivative clamps, revert pwm driver to original

* remove integral and derivative clamps, revert pwm driver to original

* dont need this for now

* clean

* fix can rx and can version error

* ignore body for misra mutation test

* fix bus recovery, remove body rx hook
2025-10-24 17:14:39 -07:00
Maxime Desroches
f6a06e34f2 ci: re-enable all HITL tests (#2280)
fan
2025-09-24 19:34:53 -07:00
probablyanasian
a2064b86f3 Change fan to use pure pwm (#2267)
* set cuatro fan settings

* set cuatro to use pure pwm

* use pwm on all boards

* remove fan max rpm configs, use pure pwm

* add comment about cooldown

* change max rpm in python side

* remove reference to max_fan_pwm in fan.h

* fully refactor fan configs into "has_fan"

* increase limits on fan test to 15% either way

* only tres for now

* doesn't matter

* not relevant anymore

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-09-13 11:09:51 -07:00
Adeeb Shihadeh
708ac34755 fix build with different root 2025-09-12 19:51:59 -07:00
Adeeb Shihadeh
7973ba4492 CAN driver cleanup (#2276)
* it's all the same thing

* not live

* less macro

* lil more

* bool

* lil more
2025-09-10 20:00:41 -07:00
Jason Wen
39517742e6 Merge branch 'upstream/panda/master' into sync-20250908
# Conflicts:
#	python/__init__.py
2025-09-08 00:31:55 -04:00
Adeeb Shihadeh
e13c3eb36d remove spi dfu spam test 2025-09-04 11:15:38 -07:00
Adeeb Shihadeh
937626d288 SPI: ensure slave is in a consistent state after failed transfer (#2268)
* SPI: ensure slave is in a consistent state after failed transfer

* respect timeout

* swap

* clean that up

* remove whitelist

* warning

* limit attempts

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-09-04 11:13:14 -07:00
Adeeb Shihadeh
5c1ff7bfa3 optimize CAN send over SPI (#2266)
* profiling

* lil faster

* chunking happens later

* little better

* prealloc is no bueno?

* cleanup

* fix usb tests

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-09-02 19:26:52 -07:00
Adeeb Shihadeh
e5a39a2cef misc cleanup (#2261)
* cleanup

* fix jungle

* one more
2025-08-26 15:01:22 -07:00
Maxime Desroches
0ff8dc219b ci: stop power_monitor (#2260)
* ci: kick power_monitor

* kill
2025-08-26 13:29:44 -07:00
Adeeb Shihadeh
1ce986f75c bye bye f4 (#2259)
* bye bye f4

* lil more

* fix mac build

* update health idx
2025-08-26 12:37:36 -07:00
Jason Wen
2f42800648 Merge branch 'upstream/panda/master' into sync-20250731
# Conflicts:
#	pyproject.toml
#	python/__init__.py
2025-07-31 21:28:55 -04:00
Maxime Desroches
e14b8691bf ci: swap bootkick device (#2250)
fix?
2025-07-30 21:40:43 -07:00
Adeeb Shihadeh
a0b52ed254 a few more spi error counts 2025-07-30 18:27:56 -07:00
Adeeb Shihadeh
7c97ab5f35 cleanup build (#2234)
* cleanup bootstub build

* cleanup rest of build

* less files

* all in same obj

* oops

* lil more
2025-07-20 11:29:58 -07:00
Adeeb Shihadeh
ca603115cb Include from project root (#2232)
* fix include paths

* cleanup
2025-07-19 21:58:58 -07:00
Adeeb Shihadeh
5ac6305a95 quick garbage collection pass (#2231)
* remove DPANDA

* -22

* lil more

* canfd

* lil more

* update cppcheck

* uart cleanup

* always harness

* sbu sense

* lil more

* enable spi

* rm ENABLE_SPI
2025-07-19 21:05:12 -07:00
Adeeb Shihadeh
edd4146635 simplify HITL tests (#2229)
* lil fixups

* revert that for now

* no n0

* also 1.8V

* global
2025-07-19 16:13:51 -07:00
Adeeb Shihadeh
76bd9e93d7 make jenkins green again (#2230)
* just make it green

* fix resetter

* fix perms

* better caching

* just copy

* simplify more

* fix that up

* nope
2025-07-19 15:49:41 -07:00
Adeeb Shihadeh
3d27233530 Deprecate white and black pandas (#2227)
* deprecate white and black pandas

* static
2025-07-19 09:55:12 -07:00
DevTekVE
70eec50dc8 Merge branch 'comma-20250627-1020d355584265391eb3acb556e4353b581fa9c0' into sync-20250627 2025-06-28 21:39:31 +02:00
Adeeb Shihadeh
1020d35558 Deprecate uno + grey (#2223)
* Deprecate uno + grey

* lil more
2025-06-06 11:36:21 -07:00
DevTekVE
a68b8ca4f9 Merge branch 'master-4f227f88c827d02188763d676aab941401be8212' into sync-20250531
# Conflicts:
#	pyproject.toml
2025-05-31 12:37:09 +02:00
Maxime Desroches
b4bb4e8519 cuatro: test in CI (#2218)
hitl
2025-05-27 13:04:48 -07:00
DevTekVE
958f145012 Merge branch commaai/panda:master into branch sunnypilot/panda:master-new 2025-05-26 12:56:37 -07:00
Adeeb Shihadeh
4fc243b998 CI: speed up MISRA mutation job (#2213)
* CI: speed up MISRA mutation job

* install first
2025-05-20 10:18:47 -07:00
Adeeb Shihadeh
cb11a40852 test.sh: the master test script (#2210)
* init test.sh

* good riddance

* docs

* curl

* source

* or

* skip that one

* passes

* clean up

* no pythonpath

* rm that
2025-05-19 21:19:41 -07:00
Adeeb Shihadeh
92c26f71e6 remove dead mull stuff (#2208)
* remove dead mull stuff

* rm clang

* fix
2025-05-19 19:40:50 -07:00
Adeeb Shihadeh
d7e5f8560f Move setup to pyproject (#2207)
* migrate packaging to pyproject

* fix

* mv

* lil more
2025-05-19 19:24:49 -07:00
Adeeb Shihadeh
2f47af4b2e reorg (#2206)
* reorg

* one less config file

* lil more

* lil more
2025-05-19 19:02:59 -07:00
Adeeb Shihadeh
8bd83750c2 setup opendbc dependency properly (#2202)
* rm that

* bump

* lil more

* update

* fix libpanda

* update

* fix misra

* python3?

* update ref

* fix mutation
2025-05-17 19:15:19 -07:00
Shane Smiskol
db50523a45 Fix safety flag rename (#2198)
fix
2025-05-14 14:23:03 -07:00
Trey Moen
6adac802b5 fix(macos): macOS 15 and greater (#2196)
* fix macos

* Revert "fix macos"

This reverts commit f52d30c97c43c1d66e5447b194d6e2f599c81187.

* use gcc on < macOS 15

* link to issue
2025-05-13 10:27:00 -07:00
DevTekVE
5389b01bdb Merge branch 'master-upstream-1d5b89956b32bbda2940724ce70c5166e44668c5' into sync-20250309
# Conflicts:
#	tests/safety_replay/replay_drive.py
2025-03-09 14:36:40 +01:00
DevTekVE
d688a4b0dd Merge branch 'master-ref-sync-20250228' into sync-20250228
# Conflicts:
#	.github/workflows/test.yaml
#	Dockerfile
#	board/safety.h
#	board/safety/safety_chrysler.h
#	board/safety/safety_ford.h
#	board/safety/safety_gm.h
#	board/safety/safety_honda.h
#	board/safety/safety_hyundai.h
#	board/safety/safety_hyundai_canfd.h
#	board/safety/safety_hyundai_common.h
#	board/safety/safety_mazda.h
#	board/safety/safety_nissan.h
#	board/safety/safety_subaru.h
#	board/safety/safety_subaru_preglobal.h
#	board/safety/safety_toyota.h
#	tests/libpanda/safety_helpers.h
#	tests/libpanda/safety_helpers.py
#	tests/safety/common.py
#	tests/safety/hyundai_common.py
#	tests/safety/mutation.sh
#	tests/safety/test_chrysler.py
#	tests/safety/test_ford.py
#	tests/safety/test_honda.py
#	tests/safety/test_hyundai.py
#	tests/safety/test_hyundai_canfd.py
#	tests/safety/test_nissan.py
#	tests/safety/test_subaru.py
#	tests/safety/test_toyota.py
#	tests/safety_replay/replay_drive.py
2025-02-28 17:56:53 +01: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
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
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
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
Jason Wen
2d4a76f227 Merge branch 'upstream/panda/master' into sync-20250215
# Conflicts:
#	Dockerfile
#	python/__init__.py
#	tests/safety/test_nissan.py
2025-02-15 21:19:06 -05: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