Commit Graph

7 Commits

Author SHA1 Message Date
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
Shane Smiskol
79145f9e5f safety tests: rename gas/brake message functions (#893)
* _brake_msg and _gas_msg were confusing

* use class inheritance to define test specific safety variables

* Revert "use class inheritance to define test specific safety variables"

This reverts commit 734efd96f3f66c2cff62674a6510c1c4b08f22cd.

* common function to set up each test

fix honda

* Revert "common function to set up each test"

This reverts commit fe4e71b3c64c6dd9717ea4f188abef7114cbfce8.

* rename related function

* formatting

* consistent name

* revert this change
2022-03-28 13:13:27 -07:00
Shane Smiskol
31d70299ae Tesla: add longitudinal controls allowed safety (#890)
* no long actuation if controls not allowed

* comment (bump)

* don't compare floats

* tesla longitudinal test

* clean up

* forgot all

* update constant

* fix
2022-03-28 13:03:07 -07:00
Adeeb Shihadeh
991638a3df Tesla: only allow cancel button (#880) 2022-03-20 22:00:19 -07:00
Adeeb Shihadeh
499906f324 Nissan + Tesla: don't exit controls allowed on blocked message (#877)
* Nissan + Tesla: don't exit controls allowed on blocked message

* update tests
2022-03-18 14:52:52 -07: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
robbederks
d8385413c3 New tesla safety (#629)
* WIP: new tesla safety

* fix misra

* add unit test

* use | instead of +

* other angle sensor

* change brake message

* fix cancel safety violation

* fix bus for cancel message

* add support for autopilot passthrough and fix cancel message

* fix tests

* this check fails

* fix build

* fix build on c2

* cleanup

* add back AP status to the check

* bus 2

* this check is dumb

* try this?

* add route to do replay on

* cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2021-06-23 12:41:43 +02:00