com.raben.telescope.comm
Class CelestronAuxillaryCommand

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

public class CelestronAuxillaryCommand
extends java.lang.Object

Celestron Auxillary Hand Controller Commands

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

Field Summary
static int DOWN_ARROW
          Down arrow
static int RIGHT_ARROW
          Right arrow
static int UP_ARROW
          Up arrow
 
Constructor Summary
CelestronAuxillaryCommand()
          Creates a new instance of CelestronAuxillaryCommand
 
Method Summary
 char[] altitudeMoveCommand(boolean direction, int rate)
          Move telescope in altitude same action as pressing up/down arrow on hand control
 char[] altitudeTrackingRateCommand(int trackRate)
          Get altitude tracking rate command
 char[] azimuthMoveCommand(boolean direction, int rate)
          Move telescope in azimuth (right ascension if on wedge) same action as as pressing left/right arrow key on hand controller
 char[] azimuthTrackingRateCommand(int trackRate)
          Get azimuth tracking rate command
 char[] createAuxillaryHandControllerCommand(char destId, char[] cmd, int responseChars)
          Create auxillary command for hand controller Packet format is 0x50, msglen, destId, msgId, data1, data2, data3, responseChars
 char[] createAuxillaryPcCommand(char destId, char[] cmd, int responseChars)
          Create auxillary command for pc port Packet format is 0x50, msglen, destId, msgId, data1, data2, data3, responseChars, checksum
 double decodeGpsCoordinate(char[] chars)
          Decode chars from GPS containing coordinate response string
 char[] gpsDateCommand()
          Get GPS date command
 char[] gpsLatitudeCommand()
          Get GPS latitude command
 char[] gpsLinkedCommand()
          Get GPS linked command
 char[] gpsLongitudeCommand()
          Get GPS longitude command
 char[] gpsTimeCommand()
          Get GPS time command
 char[] gpsYearCommand()
          Get GPS year command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIGHT_ARROW

public static final int RIGHT_ARROW
Right arrow

See Also:
Constant Field Values

UP_ARROW

public static final int UP_ARROW
Up arrow

See Also:
Constant Field Values

DOWN_ARROW

public static final int DOWN_ARROW
Down arrow

See Also:
Constant Field Values
Constructor Detail

CelestronAuxillaryCommand

public CelestronAuxillaryCommand()
Creates a new instance of CelestronAuxillaryCommand

Method Detail

createAuxillaryHandControllerCommand

public char[] createAuxillaryHandControllerCommand(char destId,
                                                   char[] cmd,
                                                   int responseChars)
Create auxillary command for hand controller Packet format is 0x50, msglen, destId, msgId, data1, data2, data3, responseChars

Parameters:
destId - Address of device
cmd - Character array containg command
responseChars - of response chars expected
Returns:
char array containing command

createAuxillaryPcCommand

public char[] createAuxillaryPcCommand(char destId,
                                       char[] cmd,
                                       int responseChars)
Create auxillary command for pc port Packet format is 0x50, msglen, destId, msgId, data1, data2, data3, responseChars, checksum

Parameters:
destId - Address of device
cmd - Character array containg command
responseChars - of response chars expected
Returns:
char array containing command

gpsYearCommand

public char[] gpsYearCommand()
Get GPS year command

Returns:
char array containing command

gpsDateCommand

public char[] gpsDateCommand()
Get GPS date command

Returns:
char array containing command

gpsTimeCommand

public char[] gpsTimeCommand()
Get GPS time command

Returns:
char array containing command

gpsLinkedCommand

public char[] gpsLinkedCommand()
Get GPS linked command

Returns:
char array containing command

gpsLongitudeCommand

public char[] gpsLongitudeCommand()
Get GPS longitude command

Returns:
char array containing command

gpsLatitudeCommand

public char[] gpsLatitudeCommand()
Get GPS latitude command

Returns:
char array containing command

decodeGpsCoordinate

public double decodeGpsCoordinate(char[] chars)
Decode chars from GPS containing coordinate response string

Parameters:
chars - array Containing response from GPS
Returns:
double angle in degrees

azimuthTrackingRateCommand

public char[] azimuthTrackingRateCommand(int trackRate)
Get azimuth tracking rate command

Parameters:
trackRate - rate in arc seconds per second
Returns:
char array containing encoded command

altitudeTrackingRateCommand

public char[] altitudeTrackingRateCommand(int trackRate)
Get altitude tracking rate command

Parameters:
trackRate - in arc seconds per second
Returns:
char array containg the encoded command

azimuthMoveCommand

public char[] azimuthMoveCommand(boolean direction,
                                 int rate)
Move telescope in azimuth (right ascension if on wedge) same action as as pressing left/right arrow key on hand controller

Parameters:
direction - false = left, true = right
rate - 0 = stop, 1 = slow, 9 = fast

altitudeMoveCommand

public char[] altitudeMoveCommand(boolean direction,
                                  int rate)
Move telescope in altitude same action as pressing up/down arrow on hand control

Parameters:
direction - true = up, false = down
rate - 0 = stop, 1 = slow, 9=fast
Returns:
char array containing command


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