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
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
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
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
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
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 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
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
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
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
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
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 e32fee7b27 .
* 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
Adeeb Shihadeh
805d2437e8
move bootstub define
2025-07-20 11:37:37 -07:00
Adeeb Shihadeh
7c97ab5f35
cleanup build ( #2234 )
...
* cleanup bootstub build
* cleanup rest of build
* less files
* all in same obj
* oops
* lil more
2025-07-20 11:29:58 -07:00
Adeeb Shihadeh
ca603115cb
Include from project root ( #2232 )
...
* fix include paths
* cleanup
2025-07-19 21:58:58 -07:00
Adeeb Shihadeh
5ac6305a95
quick garbage collection pass ( #2231 )
...
* remove DPANDA
* -22
* lil more
* canfd
* lil more
* update cppcheck
* uart cleanup
* always harness
* sbu sense
* lil more
* enable spi
* rm ENABLE_SPI
2025-07-19 21:05:12 -07:00