Adeeb Shihadeh
7f6ef7cd00
fix flashing H7 in bootstub + tests ( #1007 )
...
Co-authored-by: Bruce Wayne <batman@comma.ai >
2022-08-02 22:28:54 -07:00
Robbe Derks
6bdf249d03
Dynamic sector erase ( #1006 )
...
* dynamic sector erase
* fix red panda flash
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-08-02 21:58:56 -07:00
Adeeb Shihadeh
fe3ad834c6
improved HITL test reliability ( #897 )
...
* improved HITL test reliability
* little more
* revert that
* little speedup
* some speed up
Co-authored-by: Bruce Wayne <batman@comma.ai >
2022-08-02 17:05:47 -07:00
Adeeb Shihadeh
8b26ce940f
rename deepsleep_requested -> deepsleep_allowed
2022-08-01 17:25:48 -07:00
Adeeb Shihadeh
4b86b83991
Subaru: support Outback and Global Gen 2 ( #991 )
...
* Subaru: support Outback and Global Gen 2
* send 0x321
* check bus
* fwd that
* gen2 limits
* lower max steer
* update safety replay route
2022-07-29 20:44:41 -07:00
Igor Biletskyy
e9ba54b09b
body: allow flasher with no controls_allowed ( #1002 )
...
* add flasher check, revert len
* MISRA 10.4
* Update safety_body.h
2022-07-26 22:34:34 -07:00
Igor Biletskyy
74408d64f1
body safety: add addresses to enter can flasher ( #1000 )
...
* was bad idea to check length
* msg len?
* comment
2022-07-25 20:24:44 -07:00
Igor Biletskyy
4c433e6d47
CAN flasher: add timeout to CanHandle on transmit ( #1001 )
...
add timeout to canhandle
2022-07-25 20:23:16 -07:00
Cameron Clough
3a17c2e07f
Ford: add safety code for LCA vehicles ( #966 )
...
* Ford: add CAN messages and signal definitions
* Ford: implement safety hooks
* Ford: add safety unit tests
* Use standstill signal
* Rename bus
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Simplify brake pressed
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Ford LKAS msg helper
* Simplify button violation check
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Simplify LKAS action check
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Tidy up tests
* Use standstill signal for tests
* Misra fix
* Unused definition
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* Simplify signal bit shifting
* Remove type hints
* Add panda safety type hints
* Fix vehicle moving signal
* Fix button checks
* Fix steer allowed tests
* Fix standstill threshold in tests
* Maybe this works?
* More button tests
* Revert "Simplify button violation check"
This reverts commit c6496269844328a007ea52b5766501d7c1ea40c2.
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-07-23 16:54:58 -07:00
Igor Biletskyy
4b1d7d0215
body: add tx checks for knee ( #996 )
...
* add more tx checks
* remove junk
* ...
* wrong flasher address
2022-07-22 22:57:20 -07:00
Adeeb Shihadeh
a1686ca3ca
safety tests: use can packer for counters ( #995 )
...
* safety tests: use can packer for counters
* bump opendbc
2022-07-21 18:50:42 -07:00
Adeeb Shihadeh
1dfee5973b
Subaru: cleanup counter handling ( #992 )
2022-07-19 17:18:42 -07:00
Adeeb Shihadeh
f02b43191f
Subaru: split legacy safety into its own file ( #990 )
2022-07-19 15:53:08 -07:00
dependabot[bot]
caf350b62b
Bump numpy from 1.21.0 to 1.22.0 ( #975 )
...
* Bump numpy from 1.21.0 to 1.22.0
Bumps [numpy](https://github.com/numpy/numpy ) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/numpy/numpy/releases )
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/HOWTO_RELEASE.rst )
- [Commits](https://github.com/numpy/numpy/compare/v1.21.0...v1.22.0 )
---
updated-dependencies:
- dependency-name: numpy
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update requirements.txt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-07-15 10:50:40 -07:00
Jason Young
4ce5b5a44d
VW PQ: Updated safety test checksum and counter handling ( #964 )
...
* VW PQ: Updated checksum and counter handling
* bump opendbc for Docker/CI
2022-07-15 10:49:34 -07:00
Adeeb Shihadeh
e51aa5ebce
safety: fix race condition in engagement heartbeat ( #988 )
...
* safety: fix race condition in engagement heartbeat
* move that
* fix that
2022-07-13 14:20:00 -07:00
Adeeb Shihadeh
2abeab913f
EV6: reject fake cruise engagements ( #987 )
...
* EV6: reject fake cruise engagements
* bump opendbc
* update comment
* raise to 8
* add addr check
2022-07-12 17:42:13 -07:00
Adeeb Shihadeh
baecd2ecc6
Chrysler: increase Ram rate limits ( #981 )
2022-07-11 15:01:35 -07:00
Adeeb Shihadeh
ca927fe931
EV6: allow TX of 0x2a4 ( #983 )
...
* EV6: allow TX of 0x2a4
* don't fwd
2022-07-08 22:08:54 -07:00
Adeeb Shihadeh
53466f0934
Chrysler: allow resume button ( #980 )
2022-07-06 23:43:56 -07:00
Adeeb Shihadeh
fae3ee2e81
Chrysler: Ram 1500 support ( #969 )
...
* RamInit
* Some fixes
* ram param
* cleanup steering
* invert
* couple fixups
* tests pass
* check that
* misra fixes
* same limits
* revert that
* remove those
Co-authored-by: Jonathan <jraycec@gmail.com >
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2022-07-06 22:50:29 -07:00
Adeeb Shihadeh
6c0d0b43c2
Chrysler: update tests after DBC updates ( #979 )
...
* Chrysler: update tests after DBC updates
* lil cleanup
2022-07-05 16:33:12 -07:00
David Cole
64f20ffb5b
Correct SAFETY.md link in panda README.md ( #977 )
...
Correct SAFETY.md link
2022-07-02 16:17:45 -07:00
Adeeb Shihadeh
2652453892
EV6: adjust steering thresholds ( #972 )
...
* EV6: match max torque of rest of Hyundais
* update tests
* adjust that
* Apply suggestions from code review
* Update test_hyundai_hda2.py
2022-06-23 13:41:22 -07:00
Shane Smiskol
4bc85ad40a
Chrysler: use correct engaged bit ( #973 )
...
* use new engaged bit
* fix msg name
* update signal
* update opendbc ref
2022-06-22 14:46:25 -07:00
Shane Smiskol
26124faab7
Dockerfile: pin opendbc commit ( #976 )
...
* pin opendbc commit
* previous commit
* make env vars
2022-06-22 13:55:16 -07:00
Jason Wen
e6c2b0ff01
Remove duplicate word in comment ( #974 )
...
Remove duplicate word
2022-06-21 21:53:49 -07:00
Shane Smiskol
e1b2f1253c
bump openpilot ( #971 )
2022-06-16 22:43:36 -07:00
Shane Smiskol
515df2bb72
Chrysler: use universal gas and brake signals ( #970 )
...
* RamInit
* just gas and brake changes
* unsigned
* fix tests
* bump openpilot version (TEMP)
* misra
* system
Co-authored-by: Jonathan <jraycec@gmail.com >
2022-06-16 21:49:22 -07:00
Shane Smiskol
3dbd30864e
Honda Civic 2022 (radarless): car safety ( #942 )
...
* civic 2022
* remove
* maybe not the right way
* Honda Radarless: add tests
* update
* different bus
* other bus
* Revert "other bus"
This reverts commit 691e045f8724e57f135ad8d1683e83acbc16b91f.
* add new HUD message
* add
* different bus
* correct freq
* small updates
* comma
* remove
* remove for now
* missing
* not needed
* make into a safety param and clean up
* this can be reverted
* clean up tests (something's broken)
* fix some errors
* this message doesn't exist on any bus
* this car doesn't have BRAKE_MODULE
* make safety more explicit and fix button safety
* fix some tests
* fix tests
formatting
clean up
* radarless uses SCM_FEEDBACK too
* fix tx msgs, clean up, make test common between bosch tests
* misra
* Fix python linting errors
add comment
* not sure where that came from
* add comments
add comments
* we can guarantee honda_bosch_long is true only if not radarless
* these are the same! 🎉
* use updated route with correct tx msgs
* helper pt bus function
* this is explained above
* use function
* no more blocked messages!
* bump openpilot
* comment
* line too long
* needs system
* send on bus 0
* Camera needs bus 2 for buttons
This reverts commit f90db5d359c1c952de87ea4a2127ae599306e729.
* fix button tests
* bump openpilot
* move this down
* make this explicit
* comments
Co-authored-by: vanillagorillaa <ntmccoy@yahoo.com >
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com >
2022-06-16 19:02:44 -07:00
Shane Smiskol
6c1738814b
safety replay: set alternative experience ( #961 )
...
* Set alternative experience in safety replay
* fix
* smaller clean up diff
2022-06-13 10:59:27 -07:00
Shane Smiskol
42772b49e3
Honda Bosch: consider correct bus for buttons ( #963 )
...
* fix bosch controls mismatch when using op longitudinal
* misra
2022-06-08 21:11:55 -07:00
Jason Young
475a9a3124
fix CANPackerPanda counter state init ( #956 )
2022-06-02 11:18:46 -07:00
Shane Smiskol
d967a6b504
safety tests: use base class for common driver steering torque tests ( #950 )
...
* rename to torque_cmd_msg
* Move most of the driver torque tests into common.DriverTorqueSteeringSafetyTest
* fix static analysis so far
* HDA2 just works
* TODO: Subaru
* Subaru
* Move Mazda steering constants into class
* rm line
* split into classes
* move test_against_torque_driver into common driver torque tests
* rename to match all other tests
* fix linter
* revert changes
2022-05-25 22:51:33 -07:00
Shane Smiskol
583d3a0c7b
Mazda: fix steering safety and add tests ( #952 )
...
* fix steering safety and add tests for mazda
* fix steering safety and add tests for mazda
2022-05-25 22:19:18 -07:00
Shane Smiskol
6117c381f2
safety tests: create classes for common torque steering tests ( #951 )
...
* Create base class for common steering tests (motor/driver)
* fix class name
2022-05-25 19:24:55 -07:00
Shane Smiskol
dff5e6ed31
Hyundai: check CF_Lkas_ActToi bit ( #947 )
...
* Hyundai: check steer request bit
* add tests (should make common with Toyota in the future)
* fix comment
2022-05-25 11:36:59 -07:00
Shane Smiskol
6d19b46ef5
GM: revert back to brake threshold ( #949 )
...
Revert "GM: change from brake threshold to Brake_Pressed bit (#846 )"
This reverts commit 3bd3ae885a .
2022-05-20 19:41:26 -07:00
Adeeb Shihadeh
62f709afd4
fix missing CAN-FD safety modes
2022-05-19 16:55:53 -07:00
Willem Melching
36c62afa0c
Kia EV6 ( #905 )
...
* block lkas
* taco time
* local changes
* start
* tx checks
* counter + vehicle moving
* support big can fd
* check crc
* add torque to rx checks
* tests
* little more
* little more
* get some misra coverage
Co-authored-by: Comma Device <device@comma.ai >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-05-19 15:59:58 -07:00
Adeeb Shihadeh
b6a672de5a
bump openpilot ( #946 )
...
* bump openpilot
* need that too :(
2022-05-19 14:30:08 -07:00
Adeeb Shihadeh
4a5fc24b75
safety: move controls_allowed and relay malfunction reset ( #944 )
...
* safety: reset controls allowed and relay malfunction before safety mode init
* add back for all output
2022-05-19 14:03:43 -07:00
Shane Smiskol
36ccbd56fa
Toyota: check STEER_REQUEST bit ( #940 )
...
* check steer_req
* think this is clearer on first glance
* add test
* also test recovery
* Update tests/safety/test_toyota.py
* Update tests/safety/test_toyota.py
* move
2022-05-16 12:20:31 -07:00
Robbe Derks
893a81aa82
Tesla: allow forwarding of stock AEB ( #937 )
...
* allow forwarding of stock AEB
* misra fix
2022-05-16 13:12:14 +02:00
Adeeb Shihadeh
69215887dc
safety: prep for CAN FD ( #943 )
2022-05-15 23:46:04 -07:00
eFini
297cdb27ef
Toyota: forward ACC messages if stock longitudinal ( #934 )
...
* do not block 0x343 if toyota_stock_longitudinal set to true
* Update board/safety/safety_toyota.h
* Update board/safety/safety_toyota.h
* Update tests/safety/test_toyota.py
* Update tests/safety/test_toyota.py
Co-authored-by: Shane Smiskol <shane@smiskol.com >
2022-05-14 01:08:32 -07:00
Willem Melching
d5bd81e5b5
fixes for mypy check for return-any
2022-05-12 14:22:58 +02:00
Shane Smiskol
1d2127876d
Hyundai: use GET_BIT and fix safety on incorrect bit ( #933 )
...
* use GET_BIT where possible
* fix test to catch this
2022-05-11 22:36:53 -07:00
Ross Fisher
e8adf57a0c
Note about panda jungle udev rules ( #935 )
...
* Note about panda jungle udev rules
* Update README.md
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-05-11 21:42:21 -07:00
Adeeb Shihadeh
c31cbade34
CI: fix build after 20.04 image update ( #932 )
2022-05-02 15:02:34 -07:00