Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. newVelocities = np.array([(setattr(self, "velocityChange", True) or self.currentVelocities[i] + rc.MAX_DIRECT_VELOCITY_CHANGE * np.sign(self.targetVelocities[i] - self.currentVelocities[i]) if abs(self.targetVelocities[i] - self.currentVelocities[i]) > rc.MAX_DIRECT_VELOCITY_CHANGE else self.targetVelocities[i]) for i in range(4)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement