Support Trax 2024
Co-Authored-By: darkerthan-black <40709016+darkerthan-black@users.noreply.github.com>
This commit is contained in:
@@ -329,12 +329,21 @@ class CarInterface(CarInterfaceBase):
|
||||
ret.steerRatio = 17.7
|
||||
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)
|
||||
|
||||
elif candidate == CAR.TRAX:
|
||||
ret.mass = 1365.
|
||||
ret.wheelbase = 2.7
|
||||
ret.steerRatio = 16.4
|
||||
ret.centerToFront = ret.wheelbase * 0.4
|
||||
ret.tireStiffnessFactor = 1.0
|
||||
ret.steerActuatorDelay = 0.2
|
||||
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)
|
||||
|
||||
if ret.enableGasInterceptor:
|
||||
ret.networkLocation = NetworkLocation.fwdCamera
|
||||
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_HW_CAM
|
||||
ret.minEnableSpeed = -1
|
||||
ret.pcmCruise = False
|
||||
ret.openpilotLongitudinalControl = True
|
||||
ret.openpilotLongitudinalControl = True and not params.get_bool("DisableOpenpilotLongitudinal")
|
||||
ret.stoppingControl = True
|
||||
ret.autoResumeSng = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user