Class TimeOfFlightJNI

java.lang.Object
com.playingwithfusion.jni.TimeOfFlightJNI

public class TimeOfFlightJNI extends Object
  • Constructor Details

    • TimeOfFlightJNI

      public TimeOfFlightJNI()
  • Method Details

    • forceLoad

      public static void forceLoad() throws IOException
      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)