|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.raben.telescope.comm.TestApp
Simple test that connects to telescope and checks that it is communicating, checks if it is aligned, if so reads altitude/azimuth, and right ascension and declination.
| Constructor Summary | |
TestApp()
Creates a new instance of TestApp |
|
| Method Summary | |
boolean |
isSolarHazardWarningAcknowledged()
Display warning informing user of the hazards of operating telescope outside during the daytime Ask user to acknowledge the warning |
static void |
main(java.lang.String[] args)
|
static void |
showHelp()
Show how to start the Test application |
void |
testLeftRight()
Test moving telescope up and down in altitude |
void |
testTelescope(java.lang.String modelStr,
java.lang.String portName)
Test telescope interface |
void |
testUpDown()
Test moving telescope left and right in azimuth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestApp()
| Method Detail |
public void testTelescope(java.lang.String modelStr,
java.lang.String portName)
modelStr - Name of telescope modelportName - Name of communication portpublic static void main(java.lang.String[] args)
args - the command line arguments
Usage: java -cp TestApp.jar "model" port
Default telescope model is "Celestron Nexstar GPS", default port is COM1
If this is the case, you do not need to specify any command line args.
To list available models and ports enter the following:
java -cp TestApp.jar; HELPpublic static void showHelp()
public boolean isSolarHazardWarningAcknowledged()
public void testUpDown()
throws java.io.IOException
java.io.IOException
public void testLeftRight()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||