Toyota: check Lane Tracing Assist (LTA) EPS faults (#28711)
* check LTA faults if using LTA
* add test
* add LTA_STATE
* add comment for 0 state
* why did test_models not catch this?
* code 21
* same behavior as LKA (only if LTA is used)
* common definitions!
* more comment
* directly
* fault
* :
old-commit-hash: 07e276d5cf
beeps
parent
cb8a01a67b
commit
43dee7f6fb
2 changed files with 24 additions and 5 deletions
@ -1,13 +1,20 @@ |
||||
#!/usr/bin/env python3 |
||||
import unittest |
||||
|
||||
from selfdrive.car.toyota.values import TSS2_CAR, ANGLE_CONTROL_CAR |
||||
from selfdrive.car.toyota.values import DBC, TSS2_CAR, ANGLE_CONTROL_CAR |
||||
|
||||
|
||||
class TestToyotaInterfaces(unittest.TestCase): |
||||
def test_angle_car_set(self): |
||||
self.assertTrue(len(ANGLE_CONTROL_CAR - TSS2_CAR) == 0) |
||||
|
||||
def test_tss2_dbc(self): |
||||
# We make some assumptions about TSS2 platforms, |
||||
# like looking up certain signals only in this DBC |
||||
for car, dbc in DBC.items(): |
||||
if car in TSS2_CAR: |
||||
self.assertEqual(dbc["pt"], "toyota_nodsu_pt_generated") |
||||
|
||||
|
||||
if __name__ == "__main__": |
||||
unittest.main() |
||||
|
Loading…
Reference in new issue