jAER project on SourceForge

ch.unizh.ini.jaer.projects.opticalflow.chip
Class Motion18

java.lang.Object
  extended by java.util.Observable
      extended by net.sf.jaer.chip.Chip
          extended by net.sf.jaer.chip.Chip2D
              extended by ch.unizh.ini.jaer.projects.opticalflow.chip.Motion18

public class Motion18
extends Chip2D

Describes the motion18 chip from Alan Stocker with Pit Gebbers board wrapped around it.

Author:
tobi

Nested Class Summary
 class Motion18.Motion18Biasgen
          describes the biases on the chip
 
Field Summary
static DAC dac
          The DAC on the board
static byte FRAME_START_MARKER
          A "magic byte" marking the start of each frame
 MotionData lastMotionData
          can be used to hold reference to last motion data
static int NUM_CHANNELS
           
static int NUM_COLUMNS
           
static int NUM_MOTION_PIXELS
           
static int NUM_ROWS
           
static float VDD
          power supply for motion chip, volts
 
Fields inherited from class net.sf.jaer.chip.Chip2D
canvas, filterFrame, numCellTypes, sizeX, sizeY
 
Fields inherited from class net.sf.jaer.chip.Chip
biasgen, hardwareInterface, log, name
 
Constructor Summary
Motion18()
          Creates a new instance of Motion18
 
Method Summary
static float convert10bitToFloat(int value)
          Converts 10 bits signed ADC output value to a float ranged 0-1.
 int getCaptureMode()
          returns the current acquisition mode - some combination of bits from MotionData
static boolean isBorder(int x, int y)
           
 void setCaptureMode(int acquisitionMode)
          sets the acquisition mode.
 
Methods inherited from class net.sf.jaer.chip.Chip2D
getCanvas, getMaxSize, getMinSize, getNumCells, getNumPixels, getPixelHeightUm, getPixelWidthUm, getRenderer, getSizeX, getSizeY, setCanvas, setName, setPixelHeightUm, setPixelWidthUm, setRenderer, setSizeX, setSizeY
 
Methods inherited from class net.sf.jaer.chip.Chip
getBiasgen, getDescription, getHardwareInterface, getLastData, getName, getPreferredHardwareInterface, getPrefs, getRemoteControl, setBiasgen, setHardwareInterface, setLastData, setPreferredHardwareInterface, setPrefs, setRemoteControl
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VDD

public static final float VDD
power supply for motion chip, volts

See Also:
Constant Field Values

NUM_ROWS

public static final int NUM_ROWS
See Also:
Constant Field Values

NUM_COLUMNS

public static final int NUM_COLUMNS
See Also:
Constant Field Values

NUM_MOTION_PIXELS

public static final int NUM_MOTION_PIXELS
See Also:
Constant Field Values

NUM_CHANNELS

public static final int NUM_CHANNELS
See Also:
Constant Field Values

FRAME_START_MARKER

public static final byte FRAME_START_MARKER
A "magic byte" marking the start of each frame

See Also:
Constant Field Values

lastMotionData

public MotionData lastMotionData
can be used to hold reference to last motion data


dac

public static DAC dac
The DAC on the board

Constructor Detail

Motion18

public Motion18()
Creates a new instance of Motion18

Method Detail

isBorder

public static boolean isBorder(int x,
                               int y)

convert10bitToFloat

public static float convert10bitToFloat(int value)
Converts 10 bits signed ADC output value to a float ranged 0-1. 0 represents most negative value, .5 is zero value, 1 is most positive value.

Parameters:
value - the 10 bit value.
Returns:
the float value, ranges from 0 to 1023/1024 inclusive.

getCaptureMode

public int getCaptureMode()
returns the current acquisition mode - some combination of bits from MotionData

Returns:
mode bits

setCaptureMode

public void setCaptureMode(int acquisitionMode)
sets the acquisition mode. Sends a command to the hardware interface to set the data that is sent from the chip, if the hardware interface exists and is open.

Parameters:
acquisitionMode - a bit mask telling the hardware what to acquire from the chip

jAER project on SourceForge