Exemplo n.º 1
0
 // periodically runs and stores the joystick input vectors
 public synchronized void run() {
   coordinates.add(calculateCoordinate());
 }
Exemplo n.º 2
0
 // pulls and returns the next coordinate in the queue
 public PolarVector getNextCoordinate() {
   return (PolarVector) coordinates.pull();
 }