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 class
TimeOfFlightJNI.Helper
-
Constructor Summary
Constructors Constructor Description TimeOfFlightJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
create(int sensorID)
static void
destroy(long handle)
static void
forceLoad()
Force load the library.static double
getAmbientLightLevel(long handle)
static long
getFirmwareVersion(long handle)
static double
getRange(long handle)
static double
getRangeSigma(long handle)
static int
getRangingMode(long handle)
static double
getSampleTime(long handle)
static long
getSerialNumber(long handle)
static int
getStatus(long handle)
static void
identifySensor(long handle)
static boolean
isRangeValid(long handle)
static void
setRangeOfInterest(long handle, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY)
static void
setRangingMode(long handle, int mode, double sampleTime)
-
-
-
Method Detail
-
forceLoad
public static void forceLoad() throws java.io.IOException
Force 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)
-
-