ncsa.devices.bird
Class BirdAngleDevice
java.lang.Object
|
+--ncsa.devices.NCSAInputDevice
|
+--ncsa.devices.bird.BirdAngleDevice
- public class BirdAngleDevice
- extends ncsa.devices.NCSAInputDevice
- implements javax.comm.SerialPortEventListener, ncsa.devices.AdjustableInterface, ncsa.devices.ValuesWithRotation
Implements an InputDevice for the Acension Flock of Birds device.
This device uses the JavaComm API. Be sure you have it installed and
running correctly before attempting to use this InputDevice.
Methods inherited from class ncsa.devices.NCSAInputDevice |
close,
getName,
getProcessingMode,
getSensor,
getSensorCount,
initialize,
initializePortfolioDevice,
initializePortfolioDevice,
processStreamInput,
setNominalPositionAndOrientation,
setProcessingMode |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BirdAngleDevice
public BirdAngleDevice()
- Constructor
portfolioDeviceInitializing
public void portfolioDeviceInitializing()
- initialize device
getAdjustmentInterface
public ncsa.devices.AdjustmentInterface getAdjustmentInterface()
- Specified by:
- getAdjustmentInterface in interface ncsa.devices.AdjustableInterface
getX
public final float getX(int i)
- Specified by:
- getX in interface ncsa.devices.ValuesWithRotation
getY
public final float getY(int i)
- Specified by:
- getY in interface ncsa.devices.ValuesWithRotation
getZ
public final float getZ(int i)
- Specified by:
- getZ in interface ncsa.devices.ValuesWithRotation
getXR
public final float getXR(int i)
- Specified by:
- getXR in interface ncsa.devices.ValuesWithRotation
getYR
public final float getYR(int i)
- Specified by:
- getYR in interface ncsa.devices.ValuesWithRotation
getZR
public final float getZR(int i)
- Specified by:
- getZR in interface ncsa.devices.ValuesWithRotation
prepareAngleData
public final void prepareAngleData(int i)
pollAndProcessInput
public final void pollAndProcessInput()
- Overrides:
- pollAndProcessInput in class ncsa.devices.NCSAInputDevice
serialEvent
public final void serialEvent(javax.comm.SerialPortEvent event)
- Specified by:
- serialEvent in interface javax.comm.SerialPortEventListener
getValue
public float getValue(int index,
int value)
main
public static void main(java.lang.String[] args)
setXIndex
public void setXIndex(int index)
setYIndex
public void setYIndex(int index)
setZIndex
public void setZIndex(int index)
setXRIndex
public void setXRIndex(int index)
setYRIndex
public void setYRIndex(int index)
setZRIndex
public void setZRIndex(int index)
getXIndex
public int getXIndex()
getYIndex
public int getYIndex()
getZIndex
public int getZIndex()
getXRIndex
public int getXRIndex()
getYRIndex
public int getYRIndex()
getZRIndex
public int getZRIndex()
NCSA Portfolio, Copyright 1997-1999, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, All Rights Reserved