3000 Commits

Author SHA1 Message Date
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
Shane Smiskol
b19b66a6f0 Disable body ignition check temporarily (#2390)
Fix keeping teslas awake
2026-04-22 14:59:58 -07:00
stef
ac89f0c92d make body can hook exception v2 specific (#2387) 2026-04-10 10:26:50 -07:00
Willem Melching
18f37937cc compute_version_hash: normalize Windows line endings (#2383)
* compute_version_hash: normalize Windows line endings

* also update function in SConscript
2026-04-08 09:34:21 -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
Adeeb Shihadeh
14b1906563 Parse health packet layout from health.h (#2378)
* Parse health packet layout from health.h

* Fail closed on unexpected health.h layouts

* cleanup

* define once
2026-03-29 14:47:16 -07:00
Adeeb Shihadeh
d079b0958b deps: switch vendored tools to per-package release branches (#2372) 2026-03-14 16:21:36 -07:00
Adeeb Shihadeh
74878fcbeb automatically handle CAN and health packet ABI versions (#2371) 2026-03-14 13:40:20 -07:00
Adeeb Shihadeh
c9ee50ea9e HITL: override addopts to disable xdist for hardware tests (#2370) 2026-03-09 19:50:00 -07:00
Robbe Derks
c10b82f8ff Stagger dcam FSIN (#2307) 2026-03-09 19:14:38 -07:00
Adeeb Shihadeh
814fc7a2f5 update README 2026-03-08 16:06:24 -07:00
Adeeb Shihadeh
2c2f46b3b9 rm tres bootkick tests (#2365) 2026-02-28 16:13:25 -08:00
Adeeb Shihadeh
254767369e run all tests in test.sh (#2364) 2026-02-28 16:05:49 -08: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
b606044763 install libusb from pip (#2351)
* install libusb from pip

Use libusb-package to bundle libusb as a Python dependency instead of
requiring it as a system package. This simplifies setup on all platforms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix agnos

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 15:00:47 -08:00
Adeeb Shihadeh
0faafa1d91 don't install spidev on PC (#2360)
* don't install spidev on PC

* ugh base ubuntu
2026-02-28 14:42:36 -08:00
Adeeb Shihadeh
25357d5c6f Revert "make test_misra.sh a lil nicer to run"
This reverts commit 16a8e521d8.
2026-02-28 14:35:23 -08:00
Adeeb Shihadeh
16a8e521d8 make test_misra.sh a lil nicer to run 2026-02-28 14:23:09 -08:00
Adeeb Shihadeh
d3cbcf91b0 build system simplifications (#2359)
* buidl system simplifications

* less j

* fix that
2026-02-28 14:14:17 -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
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
Adeeb Shihadeh
5c1f2578ef use vendored cppcheck from dependencies repo (#2347) 2026-02-23 12:47:39 -08:00
Adeeb Shihadeh
49f72e931f vendor the compiler toolchain (#2342) 2026-02-22 16:21:40 -08:00
Adeeb Shihadeh
12cd48f88e sync device time before git checkout in CI (#2344) 2026-02-22 10:56:08 -08:00
Adeeb Shihadeh
a9926fd3df Remove python3 and gcc@13 installation for macOS (#2343) 2026-02-22 10:29:42 -08: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 3b954b929a.

* 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
Willem Melching
46e02cc5b0 windows: fix fcntl import (#2329)
* windows: fix fcntl import

* fix indentation

* add windows ci

* make sure CI catches import error

* Revert "make sure CI catches import error"

This reverts commit b18043ac76.
2026-02-15 11:18:42 -08:00
Adeeb Shihadeh
0ef2c72974 improve HITL robustness (#2333) 2026-02-15 11:18:20 -08:00
Willem Melching
24fe11466d update pyproject.toml: include panda.python and panda.board (#2328) 2026-02-12 11:40:50 -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
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
Adeeb Shihadeh
259645f427 Revert "[bot] Update cppcheck to 2.19.1 (#2254)"
This reverts commit ae769db8b6.
2026-02-04 12:50:32 -08:00
commaci-public
ae769db8b6 [bot] Update cppcheck to 2.19.1 (#2254)
* [bot] Update cppcheck to 2.19.1

* update coverage table

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2026-02-02 07:37:23 -08:00
Adeeb Shihadeh
759f40f5cf rm -rf drivers/spi/; kernel driver isn't needed 2026-02-01 18:44:45 -08:00
Robbe Derks
81615ad9d5 Align delay and compensate (#2318)
* align delay and compensate

* empty
2026-01-22 13:46:26 +01: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 Young
f373c69bbb garbage collect always-true condition check (#2305)
garbage collect dead code
2025-12-10 13:00:20 -08:00