Commit Graph

447 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Adeeb Shihadeh
5b0f1a2eca Panda.list() optimization for comma three (#2255)
Co-authored-by: Comma Device <device@comma.ai>
2025-08-04 16:32:30 -07:00
Willem Melching
911def65ed Keep supporting White/Black pandas from Python side (#2252)
Support White/Black pandas from Python
2025-08-03 09:22:08 -07:00
Adeeb Shihadeh
a0b52ed254 a few more spi error counts 2025-07-30 18:27:56 -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
Adeeb Shihadeh
76bd9e93d7 make jenkins green again (#2230)
* just make it green

* fix resetter

* fix perms

* better caching

* just copy

* simplify more

* fix that up

* nope
2025-07-19 15:49:41 -07:00
Maxime Desroches
e462c34d3d endpoint to set TIM1 period and channel pulse length (#2222)
works
2025-06-03 18:37:28 -07:00
Adeeb Shihadeh
c19692245c no more pylint 2025-06-01 13:53:42 -07:00
Maxime Desroches
b4bb4e8519 cuatro: test in CI (#2218)
hitl
2025-05-27 13:04:48 -07:00
Adeeb Shihadeh
5e136bad1d add macOS to CI (#2217)
* add macOS to CI

* cleanup

* debug

* cmt

* can't wait for ty
2025-05-25 10:10:20 -07:00
Dean Lee
2c802449fd add set_alternative_experience method to Panda class (#2168) 2025-02-27 11:13:43 -08:00
Willem Melching
a744fa7780 Move isotp.py, ccp.py and xcp.py to opendbc (#2166)
* Move ccp.py and xcp.py to opendbc

* move isotp

* more cleanup
2025-02-26 10:41:16 -08:00
Shane Smiskol
66bd9e8f25 Change safety model imports (#2158)
* fix test_pandad

* fix all the imports
2025-02-21 17:36:23 -08:00
Shane Smiskol
deeb4840dc Fix opendbc hitl test (#2147)
needs opendbc
2025-02-11 23:23:05 -08:00
Shane Smiskol
978ee19005 Missing Safety references (#2146)
* forgot these

* fix that
2025-02-11 21:03:10 -08:00
Shane Smiskol
d3508ff042 Move safety constants to opendbc (#2145)
* move to opendbc

* all passing

* do the rest

* fix

* and another

* order

* and update ref to master
2025-02-11 20:14:44 -08:00
Eric Brown
e7940cc3e9 Remove car specific flags (#2116)
* Subaru: combine panda flags

* Remove car-specific panda flags

* Rename usages in tests

* update opendbc ref

* ?

?

* fix ltl

* order

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2025-02-10 19:10:29 -08:00
Shane Smiskol
045fc443ab remove uds from panda (#2121)
* remove uds from panda

* rm

* rm
2025-01-13 00:44:22 -08:00
Eric Brown
6ee9c8d85a Auto-fix ruff errors in uds.py (#2118) 2024-12-22 12:30:08 -08:00
Eric Brown
8dc5435331 Subaru: combine platform panda flags (#2115)
Subaru: combine panda flags
2024-12-18 14:17:18 -08:00
Adeeb Shihadeh
dd76e663d2 Switch to our new USB VID (#2112)
Co-authored-by: Comma Device <device@comma.ai>
2024-12-16 13:31:26 -08:00
Willem Melching
cfbc3ff835 Ensure auto switching FD is off in Python (#2087) 2024-11-22 10:29:11 -08:00
Willem Melching
4a11d52e07 Control over FD flag of CAN messages (#2085)
* Control over FD flag of CAN messages

* misra
2024-11-21 11:04:09 -08:00
Maxime Desroches
998a639360 python: catch exceptions in DFU (#2084)
* try

* also this
2024-11-20 19:22:14 -08:00
Adeeb Shihadeh
ae4f753582 spi: add helper for getting bootloader ID (#2074)
* spi: add helper for getting bootloader ID

* fix mypy

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-11-07 16:55:30 -08:00
Greg Hogan
991c844731 SocketPanda python library (#2073)
* SocketPanda python library

* fix spelling

* can0 should be the default

* CAN-FD support
2024-11-05 00:16:25 +00:00
Adeeb Shihadeh
0b364ece1e tres: fix I2C hang on fake siren init (#2069)
* fix i2c hang

* misra fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-10-30 16:53:17 -07:00
Adeeb Shihadeh
8422a7437f python: open SPI device once (#2066)
Co-authored-by: Comma Device <device@comma.ai>
2024-10-24 13:27:49 -07:00
Lukas
e2c076cab8 Remove retry can_send_many loop (#2060)
* remove retry loop from can_send_many

* while condition
2024-10-14 21:24:22 -07:00
Jason Young
abdc41856b Toyota: 2021+ RAV4 Prime (#2042)
* from @pd0wm commaai/panda#1841

* diff reduction: won't need the flag rename

* run tests with new DBC and new gas/brake messages

* toyota_secoc_car to global

* consolidate alt_brake_101

* consolidate alt_pcm_cruise_176

* consolidate alt_gas_pedal_116

* don't allow transmit/forward for 0x131 unless SecOC

* cleanup and todo

* diff reduction

* reorder by usage frequency

* test for no LTA actuation

* bump opendbc commit ref in Dockerfile

* gate SecOC variant on ALLOW_DEBUG

* tweak gating for MISRA

* mutation test hates lta_angle surviving various changes

* common rx checks styling

* don't allow short version of 0x2E5 for SecOC mode

* whitespace diff reduction

* secoc_car -> secoc

* fix comment typo

* retry CI

* missed a couple secoc_car -> secoc

* one big secoc/not-secoc block

* genuinely useful MISRA warning

* test both STEERING_LTA and STEERING_LTA_2

* comment labeling for STEERING_LTA_2 signals

* Update board/safety/safety_toyota.h

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* STEERING_LTA and STEERING_LTA_2 consistency

* update gas/brake/cruise signal annotations

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2024-10-04 11:22:18 -07:00
dzid26
c77d3832ba use logger info instead of warning 2024-10-03 21:53:09 +01:00
Radek
38cab7d501 Add multiple pandas selector (#2015)
* multiple Panda cli helper

* Don't flash all pandas by default. Use --all arg to flash all.
2024-09-24 16:37:23 -07:00
Willem Melching
2526d1ee4b UDS: Fix Write Data by Address (#2023) 2024-09-16 06:56:28 -07:00
Radek
8545c68e4d Fix USB errors (#2011)
Fix LIBUSB_ERROR_PIPE [-9] when resetting over USB hubs or jungle V2
2024-09-13 15:12:35 -07:00