|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.jaer.projects.opticalflow.chip.MotionData
public class MotionData
Packs data returned from optical flow sensor. Values are floats that which are normalized as follows: all values are returned in range 0-1 float. Motion signals are centered around 0.5f. Global outputs are not - they are just from corner of chip.
Field Summary | |
---|---|
static int |
ADC_RESOLUTION_BITS
the resolution of the SiLabs_8051F320 ADC |
static int |
GLOBAL_X
Bit definitions for what this structure holds. |
static int |
GLOBAL_Y
Bit definitions for what this structure holds. |
static int |
OBJECT_SIZE
The serialized size in bytes of a MotionData instance |
static int |
PHOTO
Bit definitions for what this structure holds. |
static int |
UX
Bit definitions for what this structure holds. |
static int |
UY
Bit definitions for what this structure holds. |
Constructor Summary | |
---|---|
MotionData()
Creates a new instance of MotionData |
Method Summary | |
---|---|
int |
getContents()
returns the contents field, whose bits show what data is valid in this buffer |
float |
getGlobalX()
|
float |
getGlobalY()
|
static int |
getLength()
|
float |
getMaxph()
|
float |
getMaxus()
|
float |
getMaxuy()
|
float |
getMinph()
|
float |
getMinux()
|
float |
getMinuy()
|
float[][] |
getPh()
|
int |
getSequenceNumber()
returns the sequence number of this data |
long |
getTimeCapturedMs()
gets the system time that the data was captured |
float[][] |
getUx()
|
float[][] |
getUy()
|
boolean |
hasGlobalX()
|
boolean |
hasGlobalY()
|
boolean |
hasLocalX()
|
boolean |
hasLocalY()
|
boolean |
hasPhoto()
|
void |
read(java.io.DataInput in)
Implements the reader half of the Externalizable interface |
void |
setContents(int contents)
|
void |
setGlobalX(float globalX)
|
void |
setGlobalY(float globalY)
|
void |
setMaxph(float maxph)
|
void |
setMaxus(float maxus)
|
void |
setMaxuy(float maxuy)
|
void |
setMinph(float minph)
|
void |
setMinux(float minux)
|
void |
setMinuy(float minuy)
|
void |
setPh(float[][] ph)
|
void |
setSequenceNumber(int sequenceNumber)
|
void |
setTimeCapturedMs(long timeCapturedMs)
|
void |
setUx(float[][] ux)
|
void |
setUy(float[][] uy)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
Implements the Externalizable writer in conjuction with the reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GLOBAL_X
public static final int GLOBAL_Y
public static final int PHOTO
public static final int UX
public static final int UY
public static final int ADC_RESOLUTION_BITS
public static int OBJECT_SIZE
Constructor Detail |
---|
public MotionData()
Method Detail |
---|
public static final int getLength()
public final int getSequenceNumber()
public final void setSequenceNumber(int sequenceNumber)
public final float getGlobalX()
public final void setGlobalX(float globalX)
public final float getGlobalY()
public final void setGlobalY(float globalY)
public final float[][] getPh()
public final void setPh(float[][] ph)
public final float[][] getUx()
public final void setUx(float[][] ux)
public final float[][] getUy()
public final void setUy(float[][] uy)
public final int getContents()
public final void setContents(int contents)
public float getMinph()
public void setMinph(float minph)
public float getMaxph()
public void setMaxph(float maxph)
public float getMinux()
public void setMinux(float minux)
public float getMaxus()
public void setMaxus(float maxus)
public float getMinuy()
public void setMinuy(float minuy)
public float getMaxuy()
public void setMaxuy(float maxuy)
public boolean hasGlobalX()
public boolean hasGlobalY()
public boolean hasPhoto()
public boolean hasLocalX()
public boolean hasLocalY()
public long getTimeCapturedMs()
public void setTimeCapturedMs(long timeCapturedMs)
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.DataOutput out) throws java.io.IOException
out
- the output
java.io.IOException
public void read(java.io.DataInput in) throws java.io.IOException
in
- the ObjectInput interface
java.io.IOException
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |