Nissan: remove unnecessary lines (#1207)

pull/1209/head
rbiasini 5 years ago committed by GitHub
parent 93c6032630
commit 543ba27103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      selfdrive/car/nissan/interface.py

@ -20,16 +20,11 @@ class CarInterface(CarInterfaceBase):
ret = CarInterfaceBase.get_std_params(candidate, fingerprint, has_relay) ret = CarInterfaceBase.get_std_params(candidate, fingerprint, has_relay)
ret.dashcamOnly = True ret.dashcamOnly = True
ret.carName = "nissan" ret.carName = "nissan"
ret.carFingerprint = candidate
ret.isPandaBlack = has_relay
ret.safetyModel = car.CarParams.SafetyModel.nissan ret.safetyModel = car.CarParams.SafetyModel.nissan
ret.steerLimitAlert = False ret.steerLimitAlert = False
ret.enableCamera = True ret.enableCamera = True
ret.steerRateCost = 0.5 ret.steerRateCost = 0.5
if candidate in [CAR.XTRAIL]: if candidate in [CAR.XTRAIL]:
@ -45,21 +40,6 @@ class CarInterface(CarInterfaceBase):
ret.steerMaxV = [1.] ret.steerMaxV = [1.]
ret.steerControlType = car.CarParams.SteerControlType.angle ret.steerControlType = car.CarParams.SteerControlType.angle
ret.steerRatioRear = 0.
# testing tuning
# No long control in nissan
ret.gasMaxBP = [0.]
ret.gasMaxV = [0.]
ret.brakeMaxBP = [0.]
ret.brakeMaxV = [0.]
ret.longitudinalTuning.deadzoneBP = [0.]
ret.longitudinalTuning.deadzoneV = [0.]
ret.longitudinalTuning.kpBP = [0.]
ret.longitudinalTuning.kpV = [0.]
ret.longitudinalTuning.kiBP = [0.]
ret.longitudinalTuning.kiV = [0.]
ret.radarOffCan = True ret.radarOffCan = True
# TODO: get actual value, for now starting with reasonable value for # TODO: get actual value, for now starting with reasonable value for

Loading…
Cancel
Save