Commit Graph

326 Commits

Author SHA1 Message Date
Jason Wen
78f0a7cc37 Merge branch 'upstream/panda/master' into sync-20260211 2026-02-11 18:00:50 -05:00
Adeeb Shihadeh
b99d796924 Revert "remove mcu_type (#2324)"
This reverts commit 8922b48a30.
2026-02-10 20:31:44 -08:00
Andi Radulescu
fbd4f60d82 fix usb connect on macos (#2326)
fix claim on macos
2026-02-09 12:53:35 -08:00
Andi Radulescu
8922b48a30 remove mcu_type (#2324)
* remove mcu_type from Panda, it's redundant since all supported devices are H7

* revert disable automatic CAN-FD switching H7 check

* revert original can no longer be flashed error

* assert, assert, assert

* normal reset is fine
2026-02-09 09:36:32 -08:00
Jason Wen
94c60823a4 Revert "it's just unsupported"
This reverts commit 7db3785389.
2026-01-19 21:21:00 -05:00
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
Adeeb Shihadeh
7db3785389 it's just unsupported 2025-12-05 15:03:36 -08:00
Robbe Derks
1ffad74f88 Revert mcu_type changes (#2303)
* Revert "Fix mcu_type for deprecated pandas (#2296)"

This reverts commit 6c9064c4cf.

* Revert "Fix mcu_type in jungle (#2300)"

This reverts commit 1e8fa512ca.
2025-12-05 23:06:56 +01:00
Jason Wen
5dc009be50 Merge branch 'upstream/panda/master' into sync-20251114 2025-11-16 02:40:37 -05:00
Willem Melching
6c9064c4cf Fix mcu_type for deprecated pandas (#2296) 2025-10-29 11:34:02 +01: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
Adeeb Shihadeh
16f17ae0a1 fix infinite serial read (#2290) 2025-10-05 13:57:58 -07:00
Jason Wen
69ab12ee2a panda: fix upstream merge conflicts (#97) 2025-09-14 23:39:26 -04: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
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
Adeeb Shihadeh
2301c25dd2 cleanup panda connect (#2274)
* remove bcd

* fix jungle

* why fallback??

* cleanup
2025-09-10 10:23:58 -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
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
819fa5854e flashing speeeed (#2264)
* less sectors

* why are we taking baby steps

* revert

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-08-31 16:47:03 -07:00
Adeeb Shihadeh
e5a39a2cef misc cleanup (#2261)
* cleanup

* fix jungle

* one more
2025-08-26 15:01:22 -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
0e7a3fd8cf Revert deprecated pandas from Python side (#92)
* Revert deprecated pandas from Python side

* lint pls

* aight
2025-08-09 23:07:41 -04:00
Jason Wen
f0b55e25c8 Merge branch 'upstream/panda/master' into sync-20250809 2025-08-09 17:00:44 -04:00
Jason Wen
4ca0e4f485 Revert "Allow skipping flash and firmware checks if deprecated panda is detec…" (#90)
This reverts commit ba4774c103.
2025-08-09 00:45:40 -04:00
Adeeb Shihadeh
5b0f1a2eca Panda.list() optimization for comma three (#2255)
Co-authored-by: Comma Device <device@comma.ai>
2025-08-04 16:32:30 -07:00
Jason Wen
ba4774c103 Allow skipping flash and firmware checks if deprecated panda is detected (#89)
* flash: skip if deprecated panda is detected

* fix
2025-08-04 00:40:40 -04:00
Willem Melching
911def65ed Keep supporting White/Black pandas from Python side (#2252)
Support White/Black pandas from Python
2025-08-03 09:22:08 -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
Adeeb Shihadeh
a0b52ed254 a few more spi error counts 2025-07-30 18:27:56 -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
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
Jason Wen
c52400dacd Merge branch 'upstream/panda/master' into sync-20250605 2025-06-05 21:43:36 -04:00
Maxime Desroches
e462c34d3d endpoint to set TIM1 period and channel pulse length (#2222)
works
2025-06-03 18:37:28 -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
Jason Wen
ccb9581b1c Car safety: custom safety params (#75)
* init

* use latest opendbc pr ref
2025-03-15 17:19:30 -04: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
Dean Lee
2c802449fd add set_alternative_experience method to Panda class (#2168) 2025-02-27 11:13:43 -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
66bd9e8f25 Change safety model imports (#2158)
* fix test_pandad

* fix all the imports
2025-02-21 17:36:23 -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
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
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
Jason Wen
84836fd802 MADS: remove unused field in HEALTH_STRUCT (#68) 2025-01-20 01:37:39 -05:00
Jason Wen
4c9664f495 Merge branch 'upstream/master' into sync-20250107 2025-01-07 00:13:19 -05:00