1688 Commits

Author SHA1 Message Date
infiniteCable2
4d9ed8dcd7 Merge branch 'master' of https://github.com/sunnypilot/panda 2026-02-04 19:25:07 +01:00
Jason Wen
df68da1a72 Merge branch 'upstream/panda/master' into sync-20260201 2026-02-01 21:50:00 -05:00
infiniteCable2
e07abd4ea8 Merge branch 'master' of https://github.com/sunnypilot/panda 2026-01-25 11:55:34 +01:00
Robbe Derks
81615ad9d5 Align delay and compensate (#2318)
* align delay and compensate

* empty
2026-01-22 13:46:26 +01: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
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
infiniteCable2
3214b53a75 Merge branch 'master' of https://github.com/sunnypilot/panda 2025-12-13 12:13:49 +01: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
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
infiniteCable2
5bd386f4ff fix vw meb ignition 2025-11-16 14:02:42 +01:00
infiniteCable2
f76da9eeec Merge branch 'master' of https://github.com/sunnypilot/panda 2025-11-16 13:54:29 +01: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
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
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
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
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
infiniteCable2
2a70b09fb9 Merge branch 'master' of https://github.com/sunnypilot/panda 2025-09-14 16:55:57 +02: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
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
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
infiniteCable2
a49dff9a37 Merge branch 'master' of https://github.com/sunnypilot/panda 2025-09-04 18:40:48 +02: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
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
infiniteCable2
91910f5fe2 Merge branch 'master' of https://github.com/sunnypilot/panda 2025-08-24 19:07:17 +02: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
infiniteCable2
b16dba56a3 Update can_common.h 2025-08-03 19:57:18 +02:00
infiniteCable2
43145c98bf Merge branch 'master' of https://github.com/sunnypilot/panda into master-new 2025-08-03 19:12:14 +02: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
Robbe Derks
3bb456fd9a ADC VDDA calibration (#2247)
* working adc calibration

* bit of cleanup

* cleanup more

* fix misra

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-07-31 17:50:26 +02:00
Adeeb Shihadeh
e13f3031c0 SPI: add NACK test endpoint (#2249)
Co-authored-by: Comma Device <device@comma.ai>
2025-07-30 20:32:46 -07:00
Adeeb Shihadeh
1d9aa1beba SPI: spi_error_count is a better name (#2248)
SPI: rename spi_checksum_error_count -> spi_error_count
2025-07-30 18:20:18 -07:00
Robbe Derks
20dcba723d Generic ADC implementation (#2246)
* refactor panda side

* fix misra?

* use common ADC driver in jungle

* fix misra fr now

* fix oversampling

* default channel macro

* one more

* this makes more sense

---------

Co-authored-by: Comma Device <device@comma.ai>
2025-07-30 17:18:30 +02:00
Robbe Derks
9a410b1ee5 Differential sound (#2220)
* drive negative pin with constant value

* flag

* Revert "flag"

This reverts commit e32fee7b277558bcf16f28c2d84b1b0c89ae0fb7.

* handle both

* good ol' misra

* complete

* complete

* default

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2025-07-29 17:57:33 -07:00
Adeeb Shihadeh
b23c7aa38b opendbc updates (#2245)
* opendbc updates

* get latest opendbc in docker

* .
2025-07-29 14:16:20 -07:00
Adeeb Shihadeh
9c0be978d5 remove some old comments 2025-07-27 15:06:30 -07:00
Adeeb Shihadeh
bc90c22e3b fix pwm.h indentation 2025-07-20 13:45:31 -07:00