Adeeb Shihadeh
652367d2e8
Honda: add support for new Bosch LKAS_HUD msgs ( #793 )
2021-12-05 13:10:47 -08:00
Igor Biletskyy
89438c849b
H7: Move from PLL3Q to HSI48 for USB FS ( #800 )
2021-12-01 20:28:31 -08:00
Adeeb Shihadeh
aa1b1d8c88
Honda: fix address checks for Alt Nidec ( #799 )
...
* Honda: fix address checks for Alt Nidec
* Revert "Honda: temporarily revert new address checks (#797 )"
This reverts commit 78ed182d33
.
2021-12-01 17:45:30 -08:00
Adeeb Shihadeh
78ed182d33
Honda: temporarily revert new address checks ( #797 )
2021-12-01 14:54:51 -08:00
Adeeb Shihadeh
eaa8f0e526
libpandasafety: add function to check all addr checks are valid
2021-12-01 14:45:10 -08:00
Igor Biletskyy
ca67da626f
Fix MISRA violations 10.1 and 10.4 ( #796 )
...
* misra 10.1
* misra 10.4
* misra 10.4 in usb_protocol.h
* don't cast
2021-12-01 14:13:38 -08:00
Adeeb Shihadeh
6bea710359
libpandasafety: add safety_tick
2021-12-01 13:21:46 -08:00
Adeeb Shihadeh
c9992a80c0
bosch_harness -> bosch
2021-11-21 14:51:47 -08:00
Adeeb Shihadeh
801fd4997d
Honda: cleanup remnants of Bosch giraffe safety ( #792 )
2021-11-21 14:49:44 -08:00
Adeeb Shihadeh
3b653af70e
update pedal readme
2021-11-20 20:17:49 -08:00
Adeeb Shihadeh
13f8cd17a6
set_safety_hooks: reset acc_main_on
2021-11-19 14:39:44 -08:00
Adeeb Shihadeh
7e5f568358
libpandasafety: make HW_TYPE optional
2021-11-19 14:21:04 -08:00
Adeeb Shihadeh
5d2d4ce1e7
Honda: remove bosch giraffe support ( #791 )
2021-11-18 23:35:14 -08:00
Adeeb Shihadeh
e9365d44d3
libpandasafety: expose acc_main_on
2021-11-18 22:24:40 -08:00
Robbe Derks
ddb3698f9b
Tesla longitudinal safety ( #737 )
...
* tesla safety cleanup + long WIP
* more long safety
* longitudinal safety tests
* fix misra
* add safety for main bus DAS_control
* acc_state is not enabled
* fix tests
* we don't want this
* fix Tesla common test
2021-11-18 13:50:10 +01:00
Adeeb Shihadeh
fec966d6fd
Honda: handle ACC state consistent with ISO 15622:2018 ( #789 )
2021-11-17 17:27:24 -08:00
Jason Young
b73fc69509
VW MQB: Prep for longitudinal safety ( #788 )
2021-11-17 12:00:39 -08:00
Jason Shuler
7393783bc8
board/get_sdk.sh: add dfu-util and python3-pip ( #787 )
2021-11-16 14:50:49 -08:00
Igor Biletskyy
571512a392
Change H7 CAN FD clocks to support both 2 and 5 Mbit/s ( #781 )
2021-11-15 16:28:05 -08:00
Igor Biletskyy
c8b48ec23a
Enable CAN FD support ( #772 )
...
* enable CAN FD
* ...
2021-11-15 16:27:16 -08:00
Igor Biletskyy
9aed87df7f
Add passthrough option to alloutput safety mode ( #782 )
...
* safety_passthrough
* save few lines of code
* ..
2021-11-15 16:19:30 -08:00
Igor Biletskyy
a0ba812dac
minor typo in bxcan.h and fdcan.h ( #780 )
2021-11-15 10:59:20 -08:00
Igor Biletskyy
ae26b75d7b
CAN_FIFOMailBox to CANPacket struct + USB dynamic packet size ( #739 )
...
* Squashed commits, no cleanup
* Few fixes
* No init = garbage
* Only receive with new canpacket
* Add send with canpacket
* Revert "Add send with canpacket"
This reverts commit 7d06686ddd6d447c714b5289d31af24403d36931.
* Packet must be aligned to word, or bad performance
* Cleaner
* Fix tests
* Tests...
* MISRA 10.4
* More MISRA
* libpandasafety_py
* cffi
* even more tests...
* typo
* ...
* ...
* ...
* Slight cleanup
* MISRA 6.1
* MISRA 17.7
* Bug in bxcan + even style
* MISRA 10.1
* Revert "MISRA 10.1"
This reverts commit 404ae7fcc39556f80f528de9015702e69f4ea0a5.
* ...
* MISRA 10.1 and 10.4 suppress until next PR
* MISRA 20.1
* ...
* test_honda
* ...
* ...
* test_toyota
* test_volkswagen_mqb
* test_volkswagen_pq
* Sketchy thing...
* Revert "Sketchy thing..."
This reverts commit 3b2e5715bdc1954f7b7b3b7469ba3d0eaa06bdf9.
* remove comment
* bxcan extended address bug
* Concept, experimental dynamic usb packet size
* increase each buffer to 10240 bytes
* raise python bulk read/write limits
* ...
* Move packet size to start
* Experimental send, stream-like
* New receive test, stream-like
* cleanup
* cleanup + rebase fixes
* MISRA
* Extra receive method, stream-like, commented out
* type change
* Revert back to buffer for send, stream commented
* forgot ZLP
* lower buffer, add rx failsafe
* ... remove ZLP
* return ZLP back
* Add tx checks to panda fw
* TX stream with counter
* fix counter overflow
* 13 free slots should be enough
* limit tx usb packet
* ...
* Revert max_bulk_msg doubling
* python lib improve speed
* Stream with counter for RX, dirty, needs cleanup
* Increase chunk length to 4096 bytes
* cleanup fdcan.h
* cleanup __init__.py
* MISRA 12.1
* MISRA 10.8
* remove non-streaming usb functions
* more main.c cleanup
* MISRA 15.6
* MISRA 15.5
* MISRA 18.4 and suppress objectIndex
* handling usb pakcets > 63bytes, naming and cleanup
* Cleanup old from tests and update CANPacket_t struct
* Switch to 4 bit DLC instead of 6 bit length
* ops)
* ...
* pylint
* receive python buffer increase
* USB increase receive packet len
* tweak buffers
* No need for so high limits
* MISRA 20.1 workaround
* performance tweaks
* cleanup, dlc to data_len_code naming
* main.c naming
* comments and cleanup for main.c usb
* clean py lib
* pylint
* do not discard good rx messages on stream fail
* cleanups
* naming
* remove bitstruct lib and lower tx limit
* bitstruct lefovers
* fix bug in VW test
* remove adjusting data size and assert on wrong len
* ...
* test new memcpy before merging
* Revert "test new memcpy before merging"
This reverts commit 399465a264835061adabdd785718c4b6fc18c267.
* macros for to/fromuint8_t array
* MISRA hates me!
* tests.c include macros instead
* move CANPacket to can_definitions.h
* vw_pq python test fix
* new memcpy test, REMOVE
* check without alignment
* revert macros for uint8 arrays
* Revert "revert macros for uint8 arrays"
This reverts commit 581a9db735a42d0d68200bd270d87a8fd34e43fe.
* check assert
* Revert "check assert"
This reverts commit 9e970d029a50597a1718b2bb0260196c050fd77f.
* one more variation
* Revert "one more variation"
This reverts commit f6c0528b7ac7e125750dc0d9445c7ce97f6954b5.
* what about read performance
* Revert "what about read performance"
This reverts commit d2610f90958a816fe7f1822157a84f85e97d9249.
* check struct alignment to word
* check for aligned memcpy again
* cleanup
* add CANPacket structure diagram
* update CANPacket and add USB packet struct
* bugfix + refactoring of EP1
* move dlc_to_len to header
* missed include
* typo...
* MISRA
* fk
* lower MAX_CAN_MSGS_PER_BULK_TRANSFER
* bump CAN_PACKET_VERSION to 2
* bump python lib CAN_PACKET_VERSION to 2
* rename parse_can_buffer to unpack_can_buffer
* CANPacket_t const fields
* Revert "CANPacket_t const fields"
This reverts commit cf91c035b7706a14e317550c5f0501ae3fce7c70.
* test.c relative path
* cleanup
* move macros to safety_declarations
* Refactor pack/unpack funcs and add unittest
* usb_protocol.h
* oops
* Update .github/workflows/test.yaml
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* remove print from unittest
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-12 16:36:34 -08:00
Adeeb Shihadeh
73bbf58567
Nissan Leaf: tests + new brake signal ( #777 )
...
* Update safety_nissan.h
Updated brake CAN address to 0x25e and brake pressed to byte logic
* Update safety_nissan.h
missed a change
* Update safety_nissan.h
* Update safety_nissan.h
* Update safety_nissan.h
Corrected Line 79 to pull from the "CRUISE THROTTLE" message at address 0x239, byte 4, bit 6, which gets us to the "USER_BRAKE_PRESSED" bit for comparison if the brake pedal is being pressed.
* Update safety_nissan.h
Removed duplicate 0x239 message in "AddrCheckStruct"
* Update safety_nissan.h
Just adding back 0x1cc to see if that fixes things?
* leaf safety tests
* clenaup
* bump openpilot
* Update tests/safety/test_nissan.py
Co-authored-by: Kirk Miller <kirk.miller92@gmail.com>
2021-11-12 11:59:49 -08:00
Adeeb Shihadeh
4ee6a798c6
GM: remove ASCM safety mode ( #776 )
2021-11-11 22:30:09 -08:00
Igor Biletskyy
2f54aec67b
Improve tests ( #775 )
...
* test order
* remove 750 kbps speed tests
2021-11-11 21:32:51 -08:00
Igor Biletskyy
b38dea38c4
Jenkins: update jungle serials ( #774 )
2021-11-11 20:57:15 -08:00
Igor Biletskyy
76c7191b19
refactor bus settings into bus_config struct ( #773 )
...
* refactor bus settings into bus_config struct
2021-11-11 13:26:53 -08:00
Igor Biletskyy
b4b14593a0
Check panda library and firmware for compatibility ( #770 )
...
* check panda lib and firmware compatibility
* skip comp check for pedal
* ...
* guard affected funcs and print to stderr
* ...
* ...
* ..
* decorators
* test workaround
* linter
* ...
* ...
* ...
* change request address
* split
* remove compatible variable
* ...
* remove compatibility_check
* get packets versions on connect
* fix linter
* use RuntimeError
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-11 14:30:52 +01:00
Adeeb Shihadeh
b5f712fd40
README: fix panda img link
2021-11-08 14:12:48 -08:00
Igor Biletskyy
4d57e48fd3
Add message integrity test ( #766 )
...
* msg integrity test
* check that test works, corrupt address
* Revert "check that test works, corrupt address"
2021-11-05 13:12:49 -07:00
Igor Biletskyy
0a98c38b6f
memcpy with 4 and 16 bytes copy support ( #763 )
...
* 4 bytes memcpy
* new with alignment check
* check NO alignment
* final
* MISRA
2021-11-04 16:06:51 -07:00
Adeeb Shihadeh
bb5e2ccd00
socketcan: support newer kernels with renamed macro ( #765 )
2021-11-04 15:01:12 -07:00
Jason Young
e9a4a2b688
VW PQ: Refactor tests to use CAN packer ( #764 )
...
* Lenkhilfe_3, Motor_2
* more Motor_2
* HCA_1
* GRA_Neu
* propitiate linter
* actually propitiate linter
* bump Docker openpilot ref
2021-11-02 23:04:19 -07:00
Adeeb Shihadeh
84e47df99d
Mazda: add safety replay test route ( #761 )
...
* Mazda: add safety replay test route
* revert that
* comment
* bump openpilot
2021-10-31 22:05:14 -07:00
Greg Hogan
605980ea03
CAN calibration protocol (CCP) python library ( #640 )
...
* CAN calibration protocol lib
* fix bugs
* allow specifying byte order
* enum for endian
* fix linting issues
* fix linting issues
2021-10-31 15:06:47 -07:00
Adeeb Shihadeh
cc8e705d7c
include mazda safety mode in release build
2021-10-30 15:42:02 -07:00
martinl
27998ee3ac
fix subaru legacy rx check ( #756 )
2021-10-30 15:33:50 -07:00
Adeeb Shihadeh
2e5de6e99c
Mazda: CAN ignition ( #758 )
2021-10-30 15:32:27 -07:00
Adeeb Shihadeh
bf77a0b20c
Mazda: only allow cancel while controls not allowed ( #757 )
2021-10-30 12:38:26 -07:00
Adeeb Shihadeh
da4efd21c4
Mazda: allow sending HUD alerts ( #754 )
2021-10-29 23:39:38 -07:00
Adeeb Shihadeh
1fc38fc165
update pre-commit hooks ( #755 )
...
* update pre-commit hooks
* Update requirements.txt
* Update .pre-commit-config.yaml
* Update rigol.py
2021-10-29 16:41:12 -07:00
Adeeb Shihadeh
0d4e98f605
Mazda: only check ACC state for controls allowed ( #753 )
2021-10-29 12:12:53 -07:00
Adeeb Shihadeh
5f5f30eedc
remove forwarding from python lib
2021-10-29 11:18:42 -07:00
Adeeb Shihadeh
a01ef1f7c9
safety: check relay malfunction in common TX hook ( #752 )
...
* don't check relay malfunction in car safety tx hooks
* check in safety
* fix tests
2021-10-29 11:16:27 -07:00
Adeeb Shihadeh
ad36028a5b
safety: check relay malfunction outside of fwd hook ( #750 )
...
* safety: check relay malfunction outside of fwd hook
* fix tests
* move to safety
2021-10-29 10:59:05 -07:00
Adeeb Shihadeh
1b0295a3ef
remove USB command for bus forwarding ( #749 )
2021-10-28 23:40:11 -07:00
Willem Melching
06ec4331f4
small docs tweaks
2021-10-27 11:54:15 +02:00
Adeeb Shihadeh
0cc5ec33e4
fix build apth
2021-10-25 16:14:24 -07:00
Adeeb Shihadeh
def8558e3d
fix safety replay
2021-10-25 16:08:49 -07:00