Пример #1
0
 // periodically runs and stores the joystick input vectors
 public synchronized void run() {
   coordinates.add(calculateCoordinate());
 }
Пример #2
0
 // pulls and returns the next coordinate in the queue
 public PolarVector getNextCoordinate() {
   return (PolarVector) coordinates.pull();
 }