Commit Graph

3023 Commits

Author SHA1 Message Date
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
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
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
c1f0cfe223 jenkins: tmp disable bootkick tests
hardware needs to be fixed up
2025-08-31 16:45:14 -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
f10ddc6a89 Sync: commaai/panda:master into sunnypilot/panda:master 2025-08-23 20:56:49 -04:00
Jason Wen
76a7093bfa Merge branch 'upstream/panda/master' into sync-20250823 2025-08-23 20:41:02 -04:00
Robbe Derks
3dc2138623 Tie CAN0 and CAN2 enable lines together (#2257)
* OR can0/2 enable lines

* wrong panda

* not allowed
2025-08-19 18:02:44 +02: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
b14046ac48 Sync: commaai/panda:master into sunnypilot/panda:master 2025-08-09 22:00:42 -04:00
Jason Wen
f0b55e25c8 Merge branch 'upstream/panda/master' into sync-20250809 2025-08-09 17:00:44 -04:00