com.pentec.adaq.quickset.commands.preset
Class SetPresetEntry

java.lang.Object
  extended by com.pentec.adaq.quickset.commands.QuickSetCommand
      extended by com.pentec.adaq.quickset.commands.preset.Preset
          extended by com.pentec.adaq.quickset.commands.preset.SetPresetEntry

public class SetPresetEntry
extends Preset

Author:
Pender Technology

Field Summary
private  byte bAux1
           
private  byte bAux2
           
private static byte bCmdId
           
private  byte bPreset
           
private  int iPanCoordinate
           
private  int iTiltCoordinate
           
 
Fields inherited from class com.pentec.adaq.quickset.commands.QuickSetCommand
ACK, ESC, ETX, NACK, STX
 
Constructor Summary
SetPresetEntry()
           
SetPresetEntry(byte bPreset, int iPanCoordinate, int iTiltCoordinate)
           
SetPresetEntry(byte bPreset, int iPanCoordinate, int iTiltCoordinate, byte bAux1, byte bAux2)
           
 
Method Summary
 void setAux1(byte bAux1)
           
 void setAux2(byte bAux2)
           
 void setCoordinates(int iPanCoordinate, int iTiltCoordinate)
           
 void setPanCoordinate(int iPanCoordinate)
           
 void setPreset(byte bPreset)
           
 void setTiltCoordinate(int iTiltCoordinate)
           
 byte[] toBytes()
          Convert command into a byte array.
 
Methods inherited from class com.pentec.adaq.quickset.commands.preset.Preset
applyResponse, getAux1, getAux2, getPanCoordinate, getPreset, getTiltCoordinate
 
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

bAux1

private byte bAux1

bAux2

private byte bAux2

bCmdId

private static final byte bCmdId
See Also:
Constant Field Values

bPreset

private byte bPreset

iPanCoordinate

private int iPanCoordinate

iTiltCoordinate

private int iTiltCoordinate
Constructor Detail

SetPresetEntry

public SetPresetEntry()

SetPresetEntry

public SetPresetEntry(byte bPreset,
                      int iPanCoordinate,
                      int iTiltCoordinate)

SetPresetEntry

public SetPresetEntry(byte bPreset,
                      int iPanCoordinate,
                      int iTiltCoordinate,
                      byte bAux1,
                      byte bAux2)
Method Detail

setAux1

public void setAux1(byte bAux1)

setAux2

public void setAux2(byte bAux2)

setCoordinates

public void setCoordinates(int iPanCoordinate,
                           int iTiltCoordinate)

setPanCoordinate

public void setPanCoordinate(int iPanCoordinate)

setPreset

public void setPreset(byte bPreset)

setTiltCoordinate

public void setTiltCoordinate(int iTiltCoordinate)

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