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