|
|
|
@ -7,7 +7,6 @@ from panda import Panda |
|
|
|
|
from openpilot.selfdrive.car import get_safety_config, get_friction, structs |
|
|
|
|
from openpilot.selfdrive.car.common.basedir import BASEDIR |
|
|
|
|
from openpilot.selfdrive.car.conversions import Conversions as CV |
|
|
|
|
from openpilot.selfdrive.car.gm.carstate import CarState |
|
|
|
|
from openpilot.selfdrive.car.gm.radar_interface import RADAR_HEADER_MSG |
|
|
|
|
from openpilot.selfdrive.car.gm.values import CAR, CarControllerParams, EV_CAR, CAMERA_ACC_CAR, CanBus |
|
|
|
|
from openpilot.selfdrive.car.interfaces import CarInterfaceBase, TorqueFromLateralAccelCallbackType, FRICTION_THRESHOLD, LatControlInputs, NanoFFModel |
|
|
|
@ -25,8 +24,6 @@ NEURAL_PARAMS_PATH = os.path.join(BASEDIR, 'torque_data/neural_ff_weights.json') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CarInterface(CarInterfaceBase): |
|
|
|
|
CS: CarState |
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
|
def get_pid_accel_limits(CP, current_speed, cruise_speed): |
|
|
|
|
return CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX |
|
|
|
|