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
Greg Hogan
93776fd5bf
CCP: fix upload response size and getting seed ( #2009 )
2024-09-03 20:42:12 -07:00
MarinkoMagla
a36ca220fa
Defining types in return dictionaries ( #1923 )
...
* Defining types in return dictionaries
* Correcting indent
* Returning the class instead of dict
* Fixing failing linter
* Fixing whitespace error
2024-08-31 13:01:28 -07:00
dzid26
2b94e4fef7
Enable CAN3 printer ( #1991 )
...
* panda has 3 can peripherals
* enable printing CAN3
2024-08-26 17:15:29 -07:00
Shane Smiskol
1cbcc13c35
use and configure custom logger ( #1994 )
...
* prepare to log logs
* utils
* discoverability
* forgot
2024-08-05 14:51:56 -07:00
Shane Smiskol
daa739efb7
missed a busTime ( #1990 )
...
* whoops
* addr dat src
2024-07-31 14:30:53 -07:00
Shane Smiskol
8c3bb0151e
deprecate busTime ( #1989 )
...
* deprecate busTime
* fix test_comms.py
* update opendbc
* way more than i thought
* and here
* oops
2024-07-30 21:20:48 -07:00
Adeeb Shihadeh
2b70e283c1
tres: lower SOM reset timeout ( #1945 )
...
* tres: lower SOM reset timeout
* update test
2024-05-03 14:03:54 -07:00
Adeeb Shihadeh
6f9e2c5159
show USB list + connector errors
2024-04-23 20:39:40 -07:00
Shane Smiskol
edcd0fe4d4
IsoTpMessage: extend timeout on first frame response ( #1933 )
...
* extend on first frame too
* debug/checks
* fix able to go from single to first to single etc forever
* more clean up
* more clean up
* comments!
2024-04-17 23:23:50 -07:00
Adeeb Shihadeh
a727cecdb8
remove unused deepsleep stuff ( #1914 )
2024-03-22 14:48:49 -07:00
Adeeb Shihadeh
dd82382d5f
instant boot ( #1910 )
...
no more boot time :P
2024-03-22 14:01:44 -07:00
Adeeb Shihadeh
8a845b973e
boot time test ( #1909 )
...
* test
* usb serial
* just test for now
* time
* close
* close after
2024-03-21 20:28:44 -07:00
Adeeb Shihadeh
de061e4f73
remove rest of gmlan ( #1908 )
...
* remove rest of gmlan
* fix
* update struct
* update
2024-03-21 13:56:36 -07:00
Adeeb Shihadeh
16bd1382df
reduce SPI timeouts in python lib ( #1906 )
...
* reduce SPI timeouts in python lib
* increase
* little more
---------
Co-authored-by: Comma Device <device@comma.ai >
2024-03-20 19:36:42 -07:00
Adeeb Shihadeh
567dbfe6d8
remove comma pedal ( #1902 )
2024-03-17 22:22:46 -07:00
Adeeb Shihadeh
6dfd4db4ab
remove rtc ( #1897 )
...
* remove rtc
* fix build
* rm taht
* revert that
2024-03-11 16:08:43 -07:00
Robbe Derks
41e9610ff8
Tesla Raven ( #1886 )
...
* raven uses a different steering angle sensor
* add raven flag
* raven test
* bump opendbc ref
2024-03-06 21:13:13 +01:00
Cameron Clough
0c7d5f11d7
use pyupgrade to update syntax ( #1889 )
2024-02-24 13:56:28 -08:00
Jason Young
d2d683a04c
fix test issues in xcp.py ( #1882 )
...
remove shebang, fix typing
2024-02-20 11:41:48 -08:00
Greg Hogan
73e4733bfb
Universal Measurement and Calibration Protocol (XCP) python library ( #760 )
...
* first few commands
* fix transport_version
Co-authored-by: Willem Melching <willem.melching@gmail.com >
* add more xcp functions
* more commands
* configurable timeout
---------
Co-authored-by: Willem Melching <willem.melching@gmail.com >
2024-02-20 10:59:05 -08:00
Adeeb Shihadeh
c076a9f2f6
remove pedal fw ( #1872 )
...
* remove pedal fw
* little more
* one more
* and tests
* rest of it
* little more
* fix linter
* more fix
2024-02-16 22:58:01 -08:00
Willem Melching
eb9b0df727
Reset baudrate when connecting from Python ( #1837 )
...
* Reset baudrate when connecting from Python
* unused
2024-01-25 13:17:19 -08:00
Adeeb Shihadeh
a0ac220b0c
it's cuatro
2024-01-24 13:07:47 -08:00
Adeeb Shihadeh
a2d5d8ad07
stm32h723 ( #1832 )
...
* booting
* cleanup
---------
Co-authored-by: Comma Device <device@comma.ai >
2024-01-23 23:15:59 -08:00
Adeeb Shihadeh
41b008274b
pre-commit: autoupdate hooks ( #1789 )
...
* Update pre-commit hook versions
* fix
---------
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com >
2024-01-17 11:35:20 -08:00
Adeeb Shihadeh
08ca10e91c
add AEB enable flag ( #1791 )
2024-01-11 15:37:43 -08:00
Shane Smiskol
bb75afc84e
safety: add safety param for gas interceptor ( #1735 )
...
* some refactoring still needing to be done here
* 50hz
* set rx checks
* tx msgs
* test
* fix
* forgot to check this since it's static now
* enable_gas_interceptor
* more
* remove int funcs since are common
* generic!
* not generic
* need to set counter now
* set_enable_gas_interceptor not needed
* already reset in safety init
* fix test
* remove gas_interceptor_detected (partly)
* oof need for hjonda too
* edit structs
* more honda (still broken)
* fix typo
* shift these down
* can also make this extensible
* stash
* defining classes is much simpler, maybe in future we will have some sort of wrapper after some more thought
* remove create_interceptor_test now
* add lta interceptor
* clean up print
* clean up
* once
* type hint
* rm
* no interceptor with stock long + good test
* add interceptor counter to honda
* need alt interceptor + set rx checks for honda
* we were never testing button enable with nidec + interceptor!
honda almost all passing
* these fixes make sense
* clean up
* better
* clean up test cov
* clean up
* not needed
* fix tx msgs
* clean up
* cppcheck
* fix
* unnecessary
2023-12-14 15:22:17 -08:00
Adeeb Shihadeh
6eb89cefdf
board: remove set_phone_power ( #1747 )
2023-11-25 13:17:08 -08:00
Adeeb Shihadeh
4c0d2505b7
remove k-line driver ( #1743 )
2023-11-23 17:09:10 -08:00
Adeeb Shihadeh
a1d699b87d
SOM boot recovery ( #1712 )
...
* reset
* simpler
* only once per panda boot
* cleanup
* also check serial
2023-11-09 18:01:46 -08:00
Jason Wen
3f25ccabd6
Subaru Pre-Global: Reverse driver torque signal for certain platforms ( #1648 )
...
* Subaru Pre-Global: Reverse driver torque signal for certain platforms
* added flag
* fix tests
* use dbc instead
* duplicate
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com >
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com >
Co-authored-by: Justin Newberry <justin@comma.ai >
2023-11-08 15:27:20 -08:00
Adeeb Shihadeh
aaa1172fa2
HITL bootkick tests ( #1685 )
...
* HITL bootkick tests
* both bootkick cases
* more
* som use gpio
* cleanup
* pretty reliable now
2023-10-06 13:38:35 -07:00
Adeeb Shihadeh
f42b65ca32
skip flash if up to date ( #1686 )
...
* skip flash if up to date
* fix
2023-10-05 13:13:40 -07:00
Adeeb Shihadeh
6bf6ba773e
less dependencies ( #1676 )
2023-10-02 14:24:16 -07:00
Adeeb Shihadeh
43bed1aa47
jungle HITL tests setup ( #1665 )
...
* setup new zoo
* run
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai >
2023-09-30 23:19:06 -07:00
Adeeb Shihadeh
b6e37f25b6
Remove flash logging ( #1674 )
...
* Revert "Disable flash logging (#1667 )"
This reverts commit 62db60595b .
* Revert "Faster log retrieval (#1484 )"
This reverts commit 694aae9c26 .
* Revert "Flash bounds checking outside of bootstub (#1459 )"
This reverts commit 054344de6b .
* Revert "Logging (#1445 )"
This reverts commit 0cc91a7f7b .
* cleanup
* cleanup
2023-09-30 12:49:46 -07:00
Adeeb Shihadeh
f660323969
PandaDFU: fix F2 detection ( #1664 )
...
Co-authored-by: Comma Device <device@comma.ai >
2023-09-14 13:50:42 -07:00
Adeeb Shihadeh
bdecf82605
F2: fix flash sectors ( #1663 )
2023-09-14 12:58:56 -07:00
Adeeb Shihadeh
a660e342fd
erase log flash sectors in DFU recovery ( #1661 )
...
* erase log flash sectors in DFU recovery
* always erase by sector
* erase all
* fix
2023-09-14 12:49:59 -07:00
Adeeb Shihadeh
d87d33cb51
pre-commit: autoupdate hooks ( #1639 )
...
* Update pre-commit hook versions
* fix
---------
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com >
2023-09-07 19:10:30 -07:00