Package com.playingwithfusion.jni
Class TimeOfFlightJNI
- java.lang.Object
-
- com.playingwithfusion.jni.TimeOfFlightJNI
-
public class TimeOfFlightJNI extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeOfFlightJNI.Helper
-
Constructor Summary
Constructors Constructor Description TimeOfFlightJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcreate(int sensorID)static voiddestroy(long handle)static voidforceLoad()Force 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)
-
-
-
Method Detail
-
forceLoad
public static void forceLoad() throws java.io.IOExceptionForce load the library.- Throws:
java.io.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)
-
-