1694 Commits

Author SHA1 Message Date
Jason Wen
f911653947 Merge branch 'upstream/master' into sync-20260602 2026-06-02 13:49:01 -04:00
Daniel Koepping
7ffc916578 move can ignition to opendbc (#2396)
* move can ignition to opendbc

temp: point to opendbc PR

* rm

* pyproject

* run ci

* fix

* move
2026-05-13 11:58:17 -07:00
Jason Wen
568b4ac422 Merge branch 'upstream/master' into sync-20260425 2026-04-25 20:26:53 -04:00
Shane Smiskol
b19b66a6f0 Disable body ignition check temporarily (#2390)
Fix keeping teslas awake
2026-04-22 14:59:58 -07:00
Jason Wen
08dbc71c01 Merge branch 'upstream/panda/master' into sync-20260417 2026-04-17 02:07:28 -04:00
Jason Wen
c0cc96fbad MADS safety: enable heartbeat check and dedicated states (#113)
* init

* rename
2026-04-14 16:19:16 -04:00
Jason Wen
abc541a0bc Merge branch 'upstream/panda/master' into sync-20260412 2026-04-12 15:23:45 -04:00
stef
ac89f0c92d make body can hook exception v2 specific (#2387) 2026-04-10 10:26:50 -07:00
Jason Huang
7c0c1d956b Body v2: Hoverboard Motors (#2308)
* body

* hoverboard motors

* pass test

* body ignition exception and remove used comms

Co-authored-by: rexblade21 <zkhuang4968@gmail.com>

* send extra empty message to distinguish fingerprint

* can.h body v2 put safety hook = 1

* change v2 extra id to 0x396

* fix mirsa style error

* move ignition exception to seperate bus 2 if statement

* silence heartbeat siren on body

* turn ignition off on switch repress

* 0x250 interception in panda fw

* send extra body data, same as v1 body

* cleanup data passing for more predictable inputs and lower rpm deadband

* remove extra downscaling

* change v2 fingerprint from 0x002 to 0x222

* clean up, bus 0 ignition exception and trq mode

* keep in SPD mode for now

* remove comment

* clean

* apply suggestions

---------

Co-authored-by: stefpi <19478336+stefpi@users.noreply.github.com>
2026-04-08 09:17:01 -07:00
Jason Wen
80b5cfbc27 Merge branch 'upstream/panda/master' into sync-20260401 2026-04-01 22:39:14 -04:00
Jason Wen
4a942697bd Merge branch 'upstream/panda/master' into sync-20260317
# Conflicts:
#	pyproject.toml
2026-03-17 17:07:31 -04:00
Adeeb Shihadeh
74878fcbeb automatically handle CAN and health packet ABI versions (#2371) 2026-03-14 13:40:20 -07:00
Robbe Derks
c10b82f8ff Stagger dcam FSIN (#2307) 2026-03-09 19:14:38 -07:00
Jason Wen
05da955454 Merge branch 'upstream/panda/master' into sync-20260301 2026-03-01 16:14:41 -05:00
Adeeb Shihadeh
45f80df2cc mv crypto/ and certs/ into board/ (#2363) 2026-02-28 15:44:09 -08:00
Adeeb Shihadeh
011d3db269 document structs inline (#2362)
* inline CAN docs

* document structs inline

* lil more
2026-02-28 15:31:41 -08:00
Adeeb Shihadeh
6b940b7461 Remove FINAL_PROVISIONING firmware variant (#2358)
* Remove FINAL_PROVISIONING firmware path and CI usage

* Remove remaining FINAL_PROVISIONING references from CI

* why do i even try codex
2026-02-28 14:06:51 -08:00
Robbe Derks
d1410f7f7b Don't overflow the mic filter (#2352)
don't overflow the filter
2026-02-27 14:50:33 -08:00
Jason Wen
de4640e341 Merge branch 'upstream/panda/master' into sync-20260227 2026-02-27 16:30:45 -05:00
Robbe Derks
3ffe9591a7 measure sound output level (#2354)
* measure sound output level

* average instead

* this was wrong

* fix calc?

* try vu meter

* abs per buf

* more testing

* debug

* debug2

* debug3

* reset to 0

* fix parsing bug

* fix parsing bug

* this works

* minor cleanup

* fix misra

* docs
2026-02-25 16:55:03 -08:00
Jason Wen
2b9ee96761 Merge branch 'upstream/panda/master' into sync-20260225
# Conflicts:
#	board/drivers/registers_declarations.h
#	board/drivers/uart_declarations.h
#	python/__init__.py
2026-02-25 04:25:37 -05:00
Daniel Koepping
e1da7dc918 Reduce panda power usage (#2340)
* add bootkick for ship mode

* boot standby

* comment

* stop mode

* fix som status

* exti wakeup

* all standby

* clean

* analog mode

* adc

* clean

* HSI

* stop only cuatro

* comments

* UM2331

* rm

* comment

* enforce SAFETY_SILENT

* clean

* misra

* rm

* disable pulls

* assert

* Revert "disable pulls"

This reverts commit 3b954b929a5f864279d52e28a01768ca22962810.

* pull note

* add stop mode USB cmd

* add stop mode to HITL

* fix

* async stop mode request

* test all harness/ign configs

* more time

* use uptime

* print debug

* unstuck

* show prints

* more

* logger

* loglevel

* log

* uptime test

* tighter timing

* print wakeout source

* rm debug

* clean

* robust

* add CAN2

* test more cans

* clean

* more

* longer

* multiple

* more

* can1

* reorder

* normal

* clean

* partial

* clean

* test

* time

* delay

* reset

* setup

* reset

* revert

* silent

* fix ordering

* no random

* warnings

* err

* timings

* heartbeat

* time

* faster

* can1

* simpler

* test 20x

* put back random

* clean

* comment

* jenkinsfile

* final
2026-02-19 14:14:28 -08:00
Robbe Derks
3a85a83703 No more VBAT_EN (#2339)
this pin is not connected anymore
2026-02-16 17:52:44 +01:00
Daniel Koepping
a09005c77e Bootkick ship mode (#2330)
* add bootkick for ship mode

* boot standby

* comment
2026-02-16 17:50:55 +01:00
Adeeb Shihadeh
b1191df619 cleanup unused defines in drivers.h (#2336) 2026-02-15 17:02:00 -08:00
Adeeb Shihadeh
1762377f25 Move system stuff to sys/ (#2337)
* Move system stuff to sys/

* move power saving

* clean up
2026-02-15 17:01:09 -08:00
Adeeb Shihadeh
ad377ced81 single header for all drivers (#2335)
* drivers.h, claude's try

* include from root

* fix mac

* organize a lil more
2026-02-15 16:33:58 -08:00
Andi Radulescu
1e3a52bf3a remove mcu_type (#2327)
* 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

* remove assert from recover
2026-02-11 09:37:14 -08:00
Adeeb Shihadeh
b99d796924 Revert "remove mcu_type (#2324)"
This reverts commit 8922b48a30.
2026-02-10 20:31:44 -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
df68da1a72 Merge branch 'upstream/panda/master' into sync-20260201 2026-02-01 21:50:00 -05: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
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
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