com.raben.telescope.comm
Class TestApp

java.lang.Object
  |
  +--com.raben.telescope.comm.TestApp

public class TestApp
extends java.lang.Object

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.

Version:
$Revision: 1.2 $ $Date: 2003/09/08 16:29:53 $
Author:
Vern Raben

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

TestApp

public TestApp()
Creates a new instance of TestApp

Method Detail

testTelescope

public void testTelescope(java.lang.String modelStr,
                          java.lang.String portName)
Test telescope interface

Parameters:
modelStr - Name of telescope model
portName - Name of communication port

main

public static void main(java.lang.String[] args)
Parameters:
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; HELP

showHelp

public static void showHelp()
Show how to start the Test application


isSolarHazardWarningAcknowledged

public boolean isSolarHazardWarningAcknowledged()
Display warning informing user of the hazards of operating telescope outside during the daytime Ask user to acknowledge the warning

Returns:
True if user enter "Y", false otherwise

testUpDown

public void testUpDown()
                throws java.io.IOException
Test moving telescope left and right in azimuth

java.io.IOException

testLeftRight

public void testLeftRight()
                   throws java.io.IOException
Test moving telescope up and down in altitude

java.io.IOException


Copyright © 2003 Raben Systems, Inc.. All Rights Reserved.