com.pentec.adaq.quickset.commands.parameters
Class AlignToCenter

java.lang.Object
  extended by com.pentec.adaq.quickset.commands.QuickSetCommand
      extended by com.pentec.adaq.quickset.commands.parameters.AlignToCenter

public class AlignToCenter
extends QuickSetCommand

Author:
Pender Technology

Field Summary
private static byte bCmdId
           
private  int iPanOffset
           
private  int iTiltOffset
           
 
Fields inherited from class com.pentec.adaq.quickset.commands.QuickSetCommand
ACK, ESC, ETX, NACK, STX
 
Constructor Summary
AlignToCenter()
           
 
Method Summary
 void applyResponse(byte[] abResponseData)
          Apply QuickSet response to update internal data.
 int getPanOffset()
           
 int getTiltOffset()
           
 byte[] toBytes()
          Convert command into a byte array.
 
Methods inherited from class com.pentec.adaq.quickset.commands.QuickSetCommand
bytePairToInt, generateChecksum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bCmdId

private static final byte bCmdId
See Also:
Constant Field Values

iPanOffset

private int iPanOffset

iTiltOffset

private int iTiltOffset
Constructor Detail

AlignToCenter

public AlignToCenter()
Method Detail

applyResponse

public void applyResponse(byte[] abResponseData)
Description copied from class: QuickSetCommand
Apply QuickSet response to update internal data. Escapes for control characters have already been removed.

Specified by:
applyResponse in class QuickSetCommand

getPanOffset

public int getPanOffset()

getTiltOffset

public int getTiltOffset()

toBytes

public byte[] toBytes()
Description copied from class: QuickSetCommand
Convert command into a byte array. The checksum should already be in place, but control character escapes should not yet be applied.

Specified by:
toBytes in class QuickSetCommand