Package com.playingwithfusion.jni
Class TimeOfFlightJNI
java.lang.Object
com.playingwithfusion.jni.TimeOfFlightJNI
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcreate(int sensorID) static voiddestroy(long handle) static voidForce load the library.static doublegetAmbientLightLevel(long handle) static longgetFirmwareVersion(long handle) static doublegetRange(long handle) static doublegetRangeSigma(long handle) static intgetRangingMode(long handle) static doublegetSampleTime(long handle) static longgetSerialNumber(long handle) static intgetStatus(long handle) static voididentifySensor(long handle) static booleanisRangeValid(long handle) static voidsetRangeOfInterest(long handle, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY) static voidsetRangingMode(long handle, int mode, double sampleTime)
-
Constructor Details
-
TimeOfFlightJNI
public TimeOfFlightJNI()
-
-
Method Details
-
forceLoad
Force load the library.- Throws:
IOException- unable to load libPlayingWithFusionDriver.so
-
create
public static long create(int sensorID) -
destroy
public static void destroy(long handle) -
identifySensor
public static void identifySensor(long handle) -
getFirmwareVersion
public static long getFirmwareVersion(long handle) -
getSerialNumber
public static long getSerialNumber(long handle) -
isRangeValid
public static boolean isRangeValid(long handle) -
getRange
public static double getRange(long handle) -
getRangeSigma
public static double getRangeSigma(long handle) -
getAmbientLightLevel
public static double getAmbientLightLevel(long handle) -
getStatus
public static int getStatus(long handle) -
getRangingMode
public static int getRangingMode(long handle) -
getSampleTime
public static double getSampleTime(long handle) -
setRangingMode
public static void setRangingMode(long handle, int mode, double sampleTime) -
setRangeOfInterest
public static void setRangeOfInterest(long handle, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY)
-