|
|
|
@ -61,9 +61,6 @@ class CarInterface(CarInterfaceBase): |
|
|
|
|
ret.steerActuatorDelay = 0.25 |
|
|
|
|
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning, steering_angle_deadzone_deg=0.2) |
|
|
|
|
|
|
|
|
|
elif candidate == CAR.PRIUS_V: |
|
|
|
|
stop_and_go = True |
|
|
|
|
|
|
|
|
|
elif candidate in (CAR.RAV4, CAR.RAV4H): |
|
|
|
|
stop_and_go = True if (candidate in CAR.RAV4H) else False |
|
|
|
|
|
|
|
|
@ -77,11 +74,6 @@ class CarInterface(CarInterfaceBase): |
|
|
|
|
elif candidate in (CAR.CAMRY, CAR.CAMRY_TSS2): |
|
|
|
|
stop_and_go = True |
|
|
|
|
|
|
|
|
|
elif candidate in (CAR.HIGHLANDER, CAR.HIGHLANDER_TSS2): |
|
|
|
|
# TODO: TSS-P models can do stop and go, but unclear if it requires sDSU or unplugging DSU. |
|
|
|
|
# For now, don't list stop and go functionality in the docs |
|
|
|
|
stop_and_go = stop_and_go or bool(ret.flags & ToyotaFlags.SMART_DSU.value) or (ret.enableDsu and not docs) |
|
|
|
|
|
|
|
|
|
elif candidate in (CAR.AVALON, CAR.AVALON_2019, CAR.AVALON_TSS2): |
|
|
|
|
# starting from 2019, all Avalon variants have stop and go |
|
|
|
|
# https://engage.toyota.com/static/images/toyota_safety_sense/TSS_Applicability_Chart.pdf |
|
|
|
@ -116,6 +108,11 @@ class CarInterface(CarInterfaceBase): |
|
|
|
|
elif candidate == CAR.MIRAI: |
|
|
|
|
stop_and_go = True |
|
|
|
|
|
|
|
|
|
# TODO: these models can do stop and go, but unclear if it requires sDSU or unplugging DSU. |
|
|
|
|
# For now, don't list stop and go functionality in the docs |
|
|
|
|
if ret.flags & ToyotaFlags.SNG_WITHOUT_DSU: |
|
|
|
|
stop_and_go = stop_and_go or bool(ret.flags & ToyotaFlags.SMART_DSU.value) or (ret.enableDsu and not docs) |
|
|
|
|
|
|
|
|
|
ret.centerToFront = ret.wheelbase * 0.44 |
|
|
|
|
|
|
|
|
|
# TODO: Some TSS-P platforms have BSM, but are flipped based on region or driving direction. |
|
|
|
|