|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Define the telescope interface
| Method Summary | |
void |
cancelGoTo()
Cancel current GoTo command |
void |
close()
Close connection to telescope |
void |
connect()
Initialize connection to telescope |
java.awt.geom.Point2D |
getAzimuthAltitude()
Get current coordinate |
java.awt.geom.Point2D |
getGpsCoordinate()
Get telescope coordinate from GPS interface |
java.util.Calendar |
getGpsDateTime()
Get Calendar date from GPS interface |
java.lang.String |
getHandControlVersion()
Get controller version |
java.util.Properties |
getProperties()
Get telescope properties |
java.awt.geom.Point2D |
getRightAscensionDeclination()
Get current coordinate |
TelescopeModel |
getTelescopeModel()
Get telescope model |
void |
goToAzimuthAltitude(java.awt.geom.Point2D coordinate)
GoTo the specified coordinate in azimuth and altitude |
void |
goToRightAscensionDeclination(java.awt.geom.Point2D coordinate)
Go to the specified coordinate in right ascension/declination |
boolean |
isAligned()
Check if telescope is aligned |
boolean |
isCommunicating()
Check if telescope is communitating with serial port |
boolean |
isConnected()
Check if telescope is connected |
boolean |
isDebug()
Get debug flag |
boolean |
isGpsLinked()
Check if GPS is linked |
boolean |
isSlewing()
Check if telescope is slewing |
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 telescope tracking mode |
| Method Detail |
public void cancelGoTo()
throws java.io.IOException
java.io.IOException - may occur
public void goToRightAscensionDeclination(java.awt.geom.Point2D coordinate)
throws java.io.IOException
coordinate - in right ascension and declination
java.io.IOException - may occur
public void goToAzimuthAltitude(java.awt.geom.Point2D coordinate)
throws java.io.IOException
coordinate - in azimuth and altitude
java.io.IOException - may occur
public java.awt.geom.Point2D getRightAscensionDeclination()
throws java.io.IOException
java.io.IOException - may occur
public java.awt.geom.Point2D getAzimuthAltitude()
throws java.io.IOException
java.io.IOException - may occur
public boolean isAligned()
throws java.io.IOException
java.io.IOException - may occur
public boolean isCommunicating()
throws java.io.IOException
java.io.IOException - may be thrown
public boolean isSlewing()
throws java.io.IOException
java.io.IOException - may occur
public java.lang.String getHandControlVersion()
throws java.io.IOException
java.io.IOException - may occur
public void setTrackingMode(int mode)
throws java.io.IOException
mode - 0=off, 1=alt/az, 2= eq-n, 3=eq-s
java.io.IOException - may occur
public void connect()
throws java.io.IOException
java.io.IOException - may occurpublic boolean isConnected()
public void close()
public void setTelescopeModel(TelescopeModel model)
model - of telescope @see TelescopeModelpublic TelescopeModel getTelescopeModel()
public boolean isGpsLinked()
throws java.io.IOException
java.io.IOException - may occur
public java.util.Calendar getGpsDateTime()
throws java.io.IOException
java.io.IOException - may occur
public java.awt.geom.Point2D getGpsCoordinate()
throws java.io.IOException
java.io.IOException - may occurpublic void setProperties(java.util.Properties props)
props - Properties for setting up telescope such as comm port, baud
rate etc, refer to Javadoc for particular telescope modelpublic java.util.Properties getProperties()
public void setDebug(boolean debug)
debug - flagpublic boolean isDebug()
public void setAzimuthTrackingRate(int trackRate)
throws java.io.IOException
trackRate - in arc-sec/sec
java.io.IOException - may occur
public void setAltitudeTrackingRate(int trackRate)
throws java.io.IOException
trackRate - in arc-sec/sec
java.io.IOException - may occur
public void moveInAzimuth(boolean direction,
int rate)
throws java.io.IOException
direction - true = right, false = leftrate - 0=stop,1=slow, 9=fast
java.io.IOException
public void moveInAltitude(boolean direction,
int rate)
throws java.io.IOException
direction - 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 | |||||||||