|
|
|
@ -1,10 +1,10 @@ |
|
|
|
|
from cereal import car |
|
|
|
|
from panda import Panda |
|
|
|
|
from panda.python import uds |
|
|
|
|
from openpilot.selfdrive.car.toyota.carstate import CarState |
|
|
|
|
from openpilot.selfdrive.car.toyota.values import Ecu, CAR, DBC, ToyotaFlags, CarControllerParams, TSS2_CAR, RADAR_ACC_CAR, NO_DSU_CAR, \ |
|
|
|
|
MIN_ACC_SPEED, EPS_SCALE, UNSUPPORTED_DSU_CAR, NO_STOP_TIMER_CAR, ANGLE_CONTROL_CAR |
|
|
|
|
from openpilot.selfdrive.car import create_button_events, get_safety_config |
|
|
|
|
from openpilot.selfdrive.car import structs |
|
|
|
|
from openpilot.selfdrive.car import create_button_events, get_safety_config, structs |
|
|
|
|
from openpilot.selfdrive.car.disable_ecu import disable_ecu |
|
|
|
|
from openpilot.selfdrive.car.interfaces import CarInterfaceBase |
|
|
|
|
|
|
|
|
@ -14,6 +14,8 @@ SteerControlType = structs.CarParams.SteerControlType |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CarInterface(CarInterfaceBase): |
|
|
|
|
CS: CarState |
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
|
def get_pid_accel_limits(CP, current_speed, cruise_speed): |
|
|
|
|
return CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX |
|
|
|
|