* Mazda: add safety test
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Update mazda safety to capture more events
* gas press
* brake press
* speed - lkas on/off
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Customize safety tests
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Add RX checks
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Format
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Set lkas enable speed at 52 kph
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Test case when speed<enable_lkas_speed
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Be consistent with names in other places
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Add test case for lkas on when speed dips below lkas enable speed
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Make sure lkas disabled
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Use car's speed signal instead of wheel speed
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* Allow acc cancel msg
When gas is pressed OP disenages stock cruise doesn't get disengaged.
panda needs to know when OP engages again. OP re-enageges on cruise button
presses. This commit uses the same re-enage logic in panda.
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* rebase
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* allow acc_cancel in safety tests
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* rename variable, fix comment
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* bring over toyota + support code from safety-test-refactor
* old tests still use StdTest
* don't duplicate
* test fwd
* make linter happy
* fix indent
* fix ident
* fix order
* whitespace
* move some common tests
* cleanup
* unused
* comment
* Align with VW Community port 0.7.4-devel
* Import of PQ35/PQ46/NMS safety work
* Add safety replay drive for PQ35/PQ46/NMS
* Unwind community port hax for upstream, bump Panda ver
* Update comment
* Reduce whitespace diff
* Reduce whitespace diff
* Don't test the drive until it's uploaded
* Propitiate MISRA
* Ixnay on the VERSION LF
* Remove VERSION LF, update safety_replay with PQ drive
* Freshen cereal ref to include fields used in VW PQ test drive
* Remove superfluous return
* Bypass Docker caching issue
* disable stock honda AEB in unsafe mode
for some Honda models when OP is engaged, stock AEB will activate in unexpected circumstances, such as when there are 2 lane highways when driving on a curve with opposing traffic. When this occurs the car may brake unexpectedly (Honda Civic) or loss of gas pedal function may occur for a few seconds (Honda Pilot)
* Update safety_honda.h
* use rear wheels for speed
* Add leaf gas message
* Add brake press check to safety
* Fix typo in comparison
* threshold on gas and brake pressed and add cruise enabled check
* Fix brake pressed result
* Use same message for cruise enabled detection
* Fix typo
* Fix tests
* Add RX checks
* Allow sending cancel from panda
* Add cancel command to TX messages in tests
* Remove angle limit
* Change speed factor
* Change speed factor in tests
* Remove max angle from tests
* Fix tests
* try cancel using seatbelt
* Try different cancel message
* Fix TX_MSGS in test
* Fix fwd test