Class DexterIMUSensor.DexterIMUAccelerationSensor

    • Method Detail

      • sampleSize

        public int sampleSize()
        Description copied from interface: SampleProvider
        Returns the number of elements in a sample.
        The number of elements does not change during runtime.
        Specified by:
        sampleSize in interface SampleProvider
        Overrides:
        sampleSize in class BaseSensor
        Returns:
        the number of elements in a sample
      • getName

        public java.lang.String getName()
        Description copied from interface: SensorMode
        return a string description of this sensor mode
        Specified by:
        getName in interface SensorMode
        Overrides:
        getName in class BaseSensor
        Returns:
        The description/name of this mode
      • fetchSample

        public void fetchSample​(float[] sample,
                                int offset)
        Description copied from interface: SampleProvider
        Fetches a sample from a sensor or filter.
        Specified by:
        fetchSample in interface SampleProvider
        Overrides:
        fetchSample in class BaseSensor
        Parameters:
        sample - The array to store the sample in.
        offset - The elements of the sample are stored in the array starting at the offset position.