Example #1
0
 String move(Coordinate coord) throws TrackerException {
   isConnected();
   trk.move(coord.getPhi(), coord.getTheta(), coord.getRadius(), false);
   return "Tracker moved.\n";
 }
Example #2
0
 /**
  * Points the tracker to specified spherical coordinates.
  *
  * @param radius
  * @param theta
  * @param phi
  * @return "Tracker moved.\n"
  * @throws TrackerException thrown if not connected
  */
 String move(double radius, double theta, double phi, boolean relative) throws TrackerException {
   isConnected();
   trk.move(phi, theta, radius, relative);
   return "Tracker moved.\n";
 }