Commit Graph

3034 Commits

Author SHA1 Message Date
Jason Wen
f9cdec7f7b Sync: commaai/panda:mastersunnypilot/panda:master 2026-01-19 23:31:40 -05: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
Robbe Derks
3dd38b76b4 Build everything before jungle recover (#2316)
* make sure everything is built, including the bootloader

* also for flash
2026-01-14 17:49:43 +01: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
downquark7
e42367df97 Adjust gitversion handling to include null terminator in length calculations. (#2309)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-12-28 12:53:02 -08:00
Adeeb Shihadeh
e5074a6855 lil more 2025-12-20 14:21:25 -08:00
Adeeb Shihadeh
d72c8b4e8e CI: use tags for cppcheck update
cppcheck doesn't always create a release for each tag
2025-12-20 14:19:09 -08:00
Jason Wen
5f3c09c910 Sync: commaai/panda:mastersunnypilot/panda:master 2025-12-13 01:19:07 -05: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 Young
f373c69bbb garbage collect always-true condition check (#2305)
garbage collect dead code
2025-12-10 13:00:20 -08:00
Robbe Derks
5b3ada1e07 cleanup fan scripts 2025-12-08 14:00:46 +01: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
Robbe Derks
cb4d295f76 fix size check 2025-12-05 22:09:33 +01:00
Jason Wen
dee9061b2a Sync: commaai/panda:master into sunnypilot/panda:master (#99) 2025-11-16 02:45:16 -05:00
Jason Wen
5dc009be50 Merge branch 'upstream/panda/master' into sync-20251114 2025-11-16 02:40:37 -05:00
Igor Biletski
1c44035563 add double buffer for microphone (#2299)
* add double buffer for microphone

* comment
2025-11-03 15:56:42 -08:00
Igor Biletski
e724032378 Cuatro siren (#2294)
* Fix siren

* fix MISRA

* remove MISRA suppression

* disable amp

* fix rebase mistake

* fix fault

* diff audio

* misra

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-11-03 15:28:35 -08:00
Robbe Derks
1e8fa512ca Fix mcu_type in jungle (#2300)
should fix jungle
2025-10-30 15:20:46 +01:00
Igor Biletski
ea5dceea22 skip 1024 samples to settle, around 22ms (#2295)
* skip 1024 samples to settle, around 22ms

* smaller diff
2025-10-29 15:28:32 -04:00
Willem Melching
6c9064c4cf Fix mcu_type for deprecated pandas (#2296) 2025-10-29 11:34:02 +01:00
Willem Melching
25cb58ba61 SocketPanda improvements (#2297)
* SocketPanda improvements

* implement timeouts
2025-10-29 11:29:18 +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
f034faf0f1 spi debug (#2292)
Co-authored-by: Comma Device <device@comma.ai>
2025-10-17 19:25:25 -07:00
Adeeb Shihadeh
16f17ae0a1 fix infinite serial read (#2290) 2025-10-05 13:57:58 -07:00
Adeeb Shihadeh
d9f856be70 Remove spidev2 support from SPI implementation (#2287)
* Remove spidev2 support from SPI implementation

Removed support for spidev2 and related transfer methods.

* Remove spidev2 from dependencies

Remove spidev2 dependency for Linux platform.
2025-10-04 17:54:00 -07:00
Maxime Desroches
615009cf0f Differential sound (#2284)
real
2025-09-30 14:13:39 -07:00
Shane Smiskol
f278f31f8f Update LED_PWM_POWER definition (#2283)
Changed LED_PWM_POWER value from 5 to 2.
2025-09-28 23:51:00 -07:00
Adeeb Shihadeh
6807d7d58e add --upgrade to uv sync (#2282) 2025-09-28 13:42:49 -07:00
Adeeb Shihadeh
48c776a3df use CANPacket definition from opendbc 2025-09-28 13:37:35 -07:00
Adeeb Shihadeh
2e691e3e62 safety: move relay fault management (#2281)
* safety: move relay fault management

* set it
2025-09-27 15:58:04 -07:00
Maxime Desroches
f6a06e34f2 ci: re-enable all HITL tests (#2280)
fan
2025-09-24 19:34:53 -07:00
Adeeb Shihadeh
5ee618e2f1 spi: let err count overflow (#2279) 2025-09-23 18:03:05 -07:00
Adeeb Shihadeh
1289337ceb Reset CANFD auto-detection on CAN init (#2271)
* Reset CANFD auto-detection on CAN init

* 4u

* simpler, 4th is fake
2025-09-15 09:07:25 -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
d555c102bb gate spi2 2025-09-12 20:07:00 -07:00
Adeeb Shihadeh
708ac34755 fix build with different root 2025-09-12 19:51:59 -07:00
Jason Wen
7c393d1cd5 Sync: commaai/panda:master into sunnypilot/panda:master 2025-09-12 11:57:57 -04:00
probablyanasian
a0a30f3fad Change PWM to 25kHz (#2277) 2025-09-11 20:07:21 -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
a7f31bdbcc jenkins: use git commit to bust cache (#2273) 2025-09-10 10:28:49 -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
80d905b906 python/SPI: add optional single ioctl path (#2262)
* single ioctl

* debug

* fix import

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-09-04 13:50:50 -07: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
Jason Wen
7eab6fd61b UART: lower FIFO size (#94)
* test

* macro
2025-09-04 10:03:54 -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