|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.raben.telescope.comm.CelestronCommand
Facade to generate command string for various Celestron telescope models
| Constructor Summary | |
CelestronCommand()
Creates a new instance of CelestronCommandAdapter |
|
| Method Summary | |
java.lang.String |
alignmentComplete()
Get alignment complete command |
java.lang.String |
cancelGoTo()
Get cancel goto command |
void |
decodeHexadecimal(java.lang.String str,
java.awt.geom.Point2D coord)
Decode hexadecimal string to coordinate |
java.lang.String |
getAzimuthAltitude()
Get azimuth/altitude command |
java.lang.String |
getRightAscensionDeclination()
Get right ascension/declination command |
TelescopeModel |
getTelescopeModel()
Get telescope model |
java.lang.String |
goToAzimuthAltitude(double azimuth,
double altitude)
Get goto azimuth and altitude command string |
java.lang.String |
goToRightAscensionDeclination(double ra,
double decl)
Get GoTo right ascension declination command string |
java.lang.String |
handControlVersion()
Get hand control version command |
boolean |
isHighPrecision()
Check if high precision coordinates are set |
void |
setHighPrecision(boolean highPrecision)
Set whether high precision mode should be used (ISSUE - what if high precision not available) |
void |
setTelescopeModel(TelescopeModel model)
Set telescope model |
java.lang.String |
trackingMode(int mode)
Get tracking mode command string |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CelestronCommand()
| Method Detail |
public void setTelescopeModel(TelescopeModel model)
model - Telescope modelpublic TelescopeModel getTelescopeModel()
public void setHighPrecision(boolean highPrecision)
highPrecision - True if high precision coordinatespublic boolean isHighPrecision()
public java.lang.String goToAzimuthAltitude(double azimuth,
double altitude)
azimuth - in degress (0 to 360)altitude - in degrees (0 to 90)
public java.lang.String goToRightAscensionDeclination(double ra,
double decl)
ra - Right ascension in hours (0 to 24)decl - Declination in degrees (-90 to 90)
public java.lang.String getAzimuthAltitude()
public java.lang.String getRightAscensionDeclination()
public void decodeHexadecimal(java.lang.String str,
java.awt.geom.Point2D coord)
str - String to be decodedcoord - Coordinate whose values are to be setpublic java.lang.String handControlVersion()
public java.lang.String cancelGoTo()
public java.lang.String alignmentComplete()
public java.lang.String trackingMode(int mode)
mode - 0=off,1=altaz,2=eq-n,3=eq-s
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||