Skip to content

Commit

Permalink
test sets
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Mar 1, 2024
1 parent b029716 commit 62402f9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions selfdrive/car/toyota/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,3 +608,30 @@ def match_fw_to_car_fuzzy(live_fw_versions, offline_fw_versions) -> set[str]:

CAR_INFO = CAR.create_carinfo_map()
DBC = CAR.create_dbc_map()

# OLD
TSS2_CAR_OLD = {CAR.RAV4_TSS2, CAR.RAV4_TSS2_2022, CAR.RAV4_TSS2_2023, CAR.COROLLA_TSS2, CAR.LEXUS_ES_TSS2,
CAR.LEXUS_RX_TSS2, CAR.HIGHLANDER_TSS2, CAR.PRIUS_TSS2, CAR.CAMRY_TSS2, CAR.LEXUS_IS_TSS2,
CAR.MIRAI, CAR.LEXUS_NX_TSS2, CAR.LEXUS_LC_TSS2, CAR.ALPHARD_TSS2, CAR.AVALON_TSS2,
CAR.CHR_TSS2}

NO_DSU_CAR_OLD = TSS2_CAR | {CAR.CHR, CAR.CAMRY}

# the DSU uses the AEB message for longitudinal on these cars
UNSUPPORTED_DSU_CAR_OLD = {CAR.LEXUS_IS, CAR.LEXUS_RC, CAR.LEXUS_GS_F}

# these cars have a radar which sends ACC messages instead of the camera
RADAR_ACC_CAR_OLD = {CAR.RAV4_TSS2_2022, CAR.RAV4_TSS2_2023, CAR.CHR_TSS2}

# these cars use the Lane Tracing Assist (LTA) message for lateral control
ANGLE_CONTROL_CAR_OLD = {CAR.RAV4_TSS2_2023}

# no resume button press required
NO_STOP_TIMER_CAR_OLD = TSS2_CAR | {CAR.PRIUS_V, CAR.RAV4H, CAR.HIGHLANDER, CAR.SIENNA}

assert TSS2_CAR == TSS2_CAR_OLD
assert NO_DSU_CAR == NO_DSU_CAR_OLD
assert UNSUPPORTED_DSU_CAR == UNSUPPORTED_DSU_CAR_OLD
assert RADAR_ACC_CAR == RADAR_ACC_CAR_OLD
assert ANGLE_CONTROL_CAR == ANGLE_CONTROL_CAR_OLD
assert NO_STOP_TIMER_CAR == NO_STOP_TIMER_CAR_OLD

0 comments on commit 62402f9

Please sign in to comment.