|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.raben.telescope.comm.CelestronTelescope
Implementation of the TelescopeInterface for telescopes manufactured by Celestron (tm)
| Constructor Summary | |
CelestronTelescope()
Creates a new instance of CelestronTelescope |
|
| Method Summary | |
void |
cancelGoTo()
Cancel goto command |
void |
close()
Close connection to telescope |
void |
connect()
Initialize connection to telescope |
java.awt.geom.Point2D |
getAzimuthAltitude()
Get azimuth and altitude coordinate |
java.awt.geom.Point2D |
getGpsCoordinate()
Get telescope geographic coordinate from GPS interface |
java.util.Calendar |
getGpsDateTime()
Get Date and Time from GPS interface |
java.lang.String |
getHandControlVersion()
Get control unit version |
java.util.Properties |
getProperties()
Get telescope properties |
java.awt.geom.Point2D |
getRightAscensionDeclination()
Get right ascension and declination |
TelescopeModel |
getTelescopeModel()
Get telescope model |
void |
goToAzimuthAltitude(java.awt.geom.Point2D coordinate)
Go to specificied azimuth/altitude coordinate |
void |
goToRightAscensionDeclination(java.awt.geom.Point2D coordinate)
Go to specified right ascension/declination coordinate |
boolean |
isAligned()
Check whether or not telescope is aligned |
boolean |
isCommunicating()
Check if communication with telescope is established |
boolean |
isConnected()
Check if connection is open |
boolean |
isDebug()
Get debug flag |
boolean |
isGpsLinked()
Check if GPS is linked |
boolean |
isSlewing()
Check whether telescope is slewing to new coordinate |
void |
moveInAltitude(boolean direction,
int rate)
Move telescope in altitude |
void |
moveInAzimuth(boolean direction,
int rate)
Move telescope in azimuth |
void |
setAltitudeTrackingRate(int trackRate)
Set altitude tracking rate Note - tracking will return to default in approximately 20 seconds unless tracking is turned off @see setTrackingMode |
void |
setAzimuthTrackingRate(int trackRate)
Set azimuth tracking rate Note - tracking will return to default in approximately 20 seconds unless tracking is turned off @see setTrackingMode |
void |
setDebug(boolean debug)
Set debug flag |
void |
setProperties(java.util.Properties props)
Set telescope properties |
void |
setTelescopeModel(TelescopeModel model)
Set the telescope model |
void |
setTrackingMode(int mode)
Set tracking mode Must be aligned to switch from off to alt-az* |
java.lang.String |
toString()
String describing telescope |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CelestronTelescope()
| Method Detail |
public void cancelGoTo()
throws java.io.IOException
cancelGoTo in interface TelescopeInterfacejava.io.IOException - may occur
public java.awt.geom.Point2D getRightAscensionDeclination()
throws java.io.IOException
getRightAscensionDeclination in interface TelescopeInterfacejava.io.IOException - may occur
public void goToAzimuthAltitude(java.awt.geom.Point2D coordinate)
throws java.io.IOException
goToAzimuthAltitude in interface TelescopeInterfacecoordinate - Point2D
java.io.IOException - may be thrown
public void goToRightAscensionDeclination(java.awt.geom.Point2D coordinate)
throws java.io.IOException
goToRightAscensionDeclination in interface TelescopeInterfacecoordinate - Point2D
java.io.IOException - may occur
public java.awt.geom.Point2D getAzimuthAltitude()
throws java.io.IOException
getAzimuthAltitude in interface TelescopeInterfacejava.io.IOException - may occur
public boolean isAligned()
throws java.io.IOException
isAligned in interface TelescopeInterfacejava.io.IOException - may occur
public boolean isCommunicating()
throws java.io.IOException
isCommunicating in interface TelescopeInterfacejava.io.IOException - may occur
public boolean isSlewing()
throws java.io.IOException
isSlewing in interface TelescopeInterfacejava.io.IOException - may occurpublic void close()
close in interface TelescopeInterface
public java.lang.String getHandControlVersion()
throws java.io.IOException
getHandControlVersion in interface TelescopeInterfacejava.io.IOException - may occur
public void connect()
throws java.io.IOException
connect in interface TelescopeInterfacejava.io.IOException - may be thrownpublic boolean isConnected()
isConnected in interface TelescopeInterface
public void setTrackingMode(int mode)
throws java.io.IOException
setTrackingMode in interface TelescopeInterfacemode - (0=tracking off,1=Alt-Az tracking,2=Eq-North,3=Eq-South
java.io.IOException - may be thrown
public java.awt.geom.Point2D getGpsCoordinate()
throws java.io.IOException
getGpsCoordinate in interface TelescopeInterfacejava.io.IOException - may occur
public java.util.Calendar getGpsDateTime()
throws java.io.IOException
getGpsDateTime in interface TelescopeInterfacejava.io.IOException - may occur
public boolean isGpsLinked()
throws java.io.IOException
isGpsLinked in interface TelescopeInterfacejava.io.IOException - may occur
public void setAzimuthTrackingRate(int trackRate)
throws java.io.IOException
setAzimuthTrackingRate in interface TelescopeInterfacetrackRate - in arc-sec/sec
java.io.IOException - may occur
public void setAltitudeTrackingRate(int trackRate)
throws java.io.IOException
setAltitudeTrackingRate in interface TelescopeInterfacetrackRate - in arc-sec/sec
java.io.IOException - may occurpublic TelescopeModel getTelescopeModel()
getTelescopeModel in interface TelescopeInterfacepublic void setTelescopeModel(TelescopeModel model)
setTelescopeModel in interface TelescopeInterfacemodel - of telescope @see TelescopeModel
ISSUE - Generic Celestron telescope not yet implementedpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Properties getProperties()
getProperties in interface TelescopeInterfacepublic void setProperties(java.util.Properties props)
setProperties in interface TelescopeInterfaceprops - Properties for setting up telescope such as comm port,
and debug. Supported keys are
com.raben.telescope.port
com.raben.telescope.debugpublic boolean isDebug()
isDebug in interface TelescopeInterfacepublic void setDebug(boolean debug)
setDebug in interface TelescopeInterfacedebug - flag
public void moveInAzimuth(boolean direction,
int rate)
throws java.io.IOException
TelescopeInterface
moveInAzimuth in interface TelescopeInterfacedirection - true = right, false = leftrate - 0=stop,1=slow, 9=fast
java.io.IOException
public void moveInAltitude(boolean direction,
int rate)
throws java.io.IOException
TelescopeInterface
moveInAltitude in interface TelescopeInterfacedirection - true = up, false = downrate - 0=stop, 1=slow, 9=fast
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||