org.jscience.devices.telescopes.LX200
Class LX200

java.lang.Object
  extended by org.jscience.devices.telescopes.LX200.LX200

public final class LX200
extends java.lang.Object

DOCUMENT ME!


Field Summary
static int FOCUS_FAST
          Focus rates.
static int FOCUS_IN
          Focus directions.
static int FOCUS_OUT
          DOCUMENT ME!
static int FOCUS_SLOW
          DOCUMENT ME!
static int SLEW_CENTER
          DOCUMENT ME!
static int SLEW_EAST
          DOCUMENT ME!
static int SLEW_FIND
          DOCUMENT ME!
static int SLEW_GUIDE
          DOCUMENT ME!
static int SLEW_NORTH
          Slew directions.
static int SLEW_SLEW
          Slew rates.
static int SLEW_SOUTH
          DOCUMENT ME!
static int SLEW_WEST
          DOCUMENT ME!
 
Constructor Summary
LX200(java.lang.String port)
          Constructs an LX200 object.
 
Method Summary
static float altToFloat(java.lang.String alt)
          Convert alt from a string to a number.
static float azToFloat(java.lang.String az)
          Convert az from a string to a number.
 boolean checkPosition(float ra, float dec)
          Checks the scope's position.
 void close()
          Closes the connection to the scope.
static float decToFloat(java.lang.String dec)
          Convert dec from a string to a number.
 java.lang.String getAlt()
          Returns the current alt.
 java.lang.String getAz()
          Returns the current az.
 java.lang.String getDec()
          Returns the current dec.
 java.lang.String getLocalTime()
          Returns the local time.
 java.lang.String getRA()
          Returns the current RA.
 boolean isMoving()
          Check whether the scope is moving.
static float raToFloat(java.lang.String ra)
          Convert RA from a string to a number.
 void setFocusRate(int rate)
          Set focus rate.
 void setHighPrecision(boolean setHigh)
          Sets high precision.
 boolean setLocalTime(java.lang.String time)
          Sets the local time.
 void setLongFormat(boolean setLong)
          Sets long format.
 boolean setObjectCoords(java.lang.String ra, java.lang.String dec)
          Sets the object/target coordinates.
 void setSlewRate(int rate)
          Set slew rate.
 int slewToObject()
          Slew to the object coordinates.
 void startFocus(int direction)
          Start focus.
 void startSlew(int direction)
          Start slewing the scope.
 void stopFocus()
          Stop focus.
 void stopSlew(int direction)
          Stop slewing the scope.
 void syncCoords()
          Synchronize the scope coordinates to the object coordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOCUS_FAST

public static final int FOCUS_FAST
Focus rates.

See Also:
Constant Field Values

FOCUS_SLOW

public static final int FOCUS_SLOW
DOCUMENT ME!

See Also:
Constant Field Values

FOCUS_IN

public static final int FOCUS_IN
Focus directions.

See Also:
Constant Field Values

FOCUS_OUT

public static final int FOCUS_OUT
DOCUMENT ME!

See Also:
Constant Field Values

SLEW_SLEW

public static final int SLEW_SLEW
Slew rates.

See Also:
Constant Field Values

SLEW_FIND

public static final int SLEW_FIND
DOCUMENT ME!

See Also:
Constant Field Values

SLEW_CENTER

public static final int SLEW_CENTER
DOCUMENT ME!

See Also:
Constant Field Values

SLEW_GUIDE

public static final int SLEW_GUIDE
DOCUMENT ME!

See Also:
Constant Field Values

SLEW_NORTH

public static final int SLEW_NORTH
Slew directions.

See Also:
Constant Field Values

SLEW_EAST

public static final int SLEW_EAST
DOCUMENT ME!

See Also:
Constant Field Values

SLEW_SOUTH

public static final int SLEW_SOUTH
DOCUMENT ME!

See Also:
Constant Field Values

SLEW_WEST

public static final int SLEW_WEST
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

LX200

public LX200(java.lang.String port)
Constructs an LX200 object.

Parameters:
port - DOCUMENT ME!
Method Detail

raToFloat

public static float raToFloat(java.lang.String ra)
Convert RA from a string to a number.

Parameters:
ra - DOCUMENT ME!
Returns:
DOCUMENT ME!

decToFloat

public static float decToFloat(java.lang.String dec)
Convert dec from a string to a number.

Parameters:
dec - DOCUMENT ME!
Returns:
DOCUMENT ME!

altToFloat

public static float altToFloat(java.lang.String alt)
Convert alt from a string to a number.

Parameters:
alt - DOCUMENT ME!
Returns:
DOCUMENT ME!

azToFloat

public static float azToFloat(java.lang.String az)
Convert az from a string to a number.

Parameters:
az - DOCUMENT ME!
Returns:
DOCUMENT ME!

setHighPrecision

public void setHighPrecision(boolean setHigh)
                      throws java.io.IOException
Sets high precision.

Parameters:
setHigh - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

setLongFormat

public void setLongFormat(boolean setLong)
                   throws java.io.IOException
Sets long format.

Parameters:
setLong - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

setFocusRate

public void setFocusRate(int rate)
                  throws java.io.IOException
Set focus rate.

Parameters:
rate - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

startFocus

public void startFocus(int direction)
                throws java.io.IOException
Start focus.

Parameters:
direction - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

stopFocus

public void stopFocus()
               throws java.io.IOException
Stop focus.

Throws:
java.io.IOException - DOCUMENT ME!

setSlewRate

public void setSlewRate(int rate)
                 throws java.io.IOException
Set slew rate.

Parameters:
rate - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

startSlew

public void startSlew(int direction)
               throws java.io.IOException
Start slewing the scope.

Parameters:
direction - the direction to start slewing in.
Throws:
java.io.IOException - DOCUMENT ME!

stopSlew

public void stopSlew(int direction)
              throws java.io.IOException
Stop slewing the scope.

Parameters:
direction - the direction to stop slewing in.
Throws:
java.io.IOException - DOCUMENT ME!

getRA

public java.lang.String getRA()
                       throws java.io.IOException
Returns the current RA.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getDec

public java.lang.String getDec()
                        throws java.io.IOException
Returns the current dec.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getAlt

public java.lang.String getAlt()
                        throws java.io.IOException
Returns the current alt.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getAz

public java.lang.String getAz()
                       throws java.io.IOException
Returns the current az.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

setObjectCoords

public boolean setObjectCoords(java.lang.String ra,
                               java.lang.String dec)
                        throws java.io.IOException
Sets the object/target coordinates.

Parameters:
ra - DOCUMENT ME!
dec - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

slewToObject

public int slewToObject()
                 throws java.io.IOException
Slew to the object coordinates.

Returns:
0 if slew is possible, 1 if object is below the horizon, 2 if object is below the higher.
Throws:
java.io.IOException - DOCUMENT ME!

checkPosition

public boolean checkPosition(float ra,
                             float dec)
                      throws java.io.IOException
Checks the scope's position.

Parameters:
ra - RA to check against.
dec - dec to check against.
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

isMoving

public boolean isMoving()
                 throws java.io.IOException
Check whether the scope is moving.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getLocalTime

public java.lang.String getLocalTime()
                              throws java.io.IOException
Returns the local time.

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

setLocalTime

public boolean setLocalTime(java.lang.String time)
                     throws java.io.IOException
Sets the local time.

Parameters:
time - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

syncCoords

public void syncCoords()
                throws java.io.IOException
Synchronize the scope coordinates to the object coordinates.

Throws:
java.io.IOException - DOCUMENT ME!

close

public void close()
           throws java.io.IOException
Closes the connection to the scope.

Throws:
java.io.IOException - DOCUMENT ME!