Update plant.py

pull/35029/head
Harald Schäfer 1 week ago committed by GitHub
parent 9e61ebd17b
commit 030751051b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/test/longitudinal_maneuvers/plant.py

@ -113,7 +113,7 @@ class Plant:
velocity.x[0] = float(self.speed) # always start at current speed
model.modelV2.velocity = velocity
acceleration = log.XYZTData.new_message()
acceleration.x = [float(x + 0.1) for x in np.zeros_like(ModelConstants.T_IDXS)]
acceleration.x = [float(x) for x in np.zeros_like(ModelConstants.T_IDXS)]
model.modelV2.acceleration = acceleration
model.modelV2.meta.disengagePredictions.gasPressProbs = [float(prob_throttle) for _ in range(6)]

Loading…
Cancel
Save