Package-level declarations

Types

Link copied to clipboard
class AccelerometerIntervalDetector(context: Context, val sensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.FASTEST, initializationStartedListener: IntervalDetector.OnInitializationStartedListener<AccelerometerIntervalDetector>? = null, initializationCompletedListener: IntervalDetector.OnInitializationCompletedListener<AccelerometerIntervalDetector>? = null, errorListener: IntervalDetector.OnErrorListener<AccelerometerIntervalDetector>? = null, staticIntervalDetectedListener: IntervalDetector.OnStaticIntervalDetectedListener<AccelerometerIntervalDetector>? = null, dynamicIntervalDetectedListener: IntervalDetector.OnDynamicIntervalDetectedListener<AccelerometerIntervalDetector>? = null, resetListener: IntervalDetector.OnResetListener<AccelerometerIntervalDetector>? = null, var measurementListener: AccelerometerSensorCollector.OnMeasurementListener? = null, accuracyChangedListener: SensorCollector.OnAccuracyChangedListener? = null) : IntervalDetector<AccelerometerIntervalDetector, AccelerometerSensorCollector, AccelerationUnit, Acceleration, AccelerationTriad, AccelerationTriadStaticIntervalDetector, AccelerationTriadStaticIntervalDetectorListener>

Detects static or motion intervals of time by using the accelerometer of the device to determine whether the device is moving or not. When detector is started, initialization occurs to determine the accelerometer noise level while keeping device static. Once the detector is initialized, then static or dynamic intervals can be detected. This detector uses accumulated average values during static intervals, and windowed averages as "instantaneous" values during dynamic intervals. Length of windows, as well as thresholds to determine when changes between static and dynamic intervals occur can be easily configured. This interval detector converts sensor measurements from device ENU coordinates to local plane NED coordinates. Thus, all values referring to a given x-y-z coordinate refers to local plane NED system of coordinates.

Link copied to clipboard

Reason why interval detection fails.

Link copied to clipboard
class GyroscopeIntervalDetector(context: Context, val sensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.FASTEST, initializationStartedListener: IntervalDetector.OnInitializationStartedListener<GyroscopeIntervalDetector>? = null, initializationCompletedListener: IntervalDetector.OnInitializationCompletedListener<GyroscopeIntervalDetector>? = null, errorListener: IntervalDetector.OnErrorListener<GyroscopeIntervalDetector>? = null, staticIntervalDetectedListener: IntervalDetector.OnStaticIntervalDetectedListener<GyroscopeIntervalDetector>? = null, dynamicIntervalDetectedListener: IntervalDetector.OnDynamicIntervalDetectedListener<GyroscopeIntervalDetector>? = null, resetListener: IntervalDetector.OnResetListener<GyroscopeIntervalDetector>? = null, var measurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null, accuracyChangedListener: SensorCollector.OnAccuracyChangedListener? = null) : IntervalDetector<GyroscopeIntervalDetector, GyroscopeSensorCollector, AngularSpeedUnit, AngularSpeed, AngularSpeedTriad, AngularSpeedTriadStaticIntervalDetector, AngularSpeedTriadStaticIntervalDetectorListener>

Detects static or motion intervals of time by using the gyroscope of the device to determine whether the device is moving or not. When detector is started, initialization occurs to determine the gyroscope noise level while keeping device static. Once the detector is initialized, then static or dynamic intervals can be detected. This detector uses accumulated average values during static intervals, and windowed averages as "instantaneous" values during dynamic intervals. Length of windows, as well as thresholds to determine when changes between static and dynamic intervals occur can be easily configured. This interval detector converts sensor measurements from device ENU coordinates to local plane NED coordinates. Thus, all values referring to a given x-y-z coordinate refers to local plane NED system of coordinates.

Link copied to clipboard
abstract class IntervalDetector<I : IntervalDetector<I, S, U, M, T, D, L>, S : SensorCollector, U : Enum<*>, M : Measurement<U>, T : Triad<U, M>, D : TriadStaticIntervalDetector<U, M, T, D, L>, L : TriadStaticIntervalDetectorListener<U, M, T, D>>(val context: Context, val sensorDelay: SensorDelay, var initializationStartedListener: IntervalDetector.OnInitializationStartedListener<I>? = null, var initializationCompletedListener: IntervalDetector.OnInitializationCompletedListener<I>? = null, var errorListener: IntervalDetector.OnErrorListener<I>? = null, var staticIntervalDetectedListener: IntervalDetector.OnStaticIntervalDetectedListener<I>? = null, var dynamicIntervalDetectedListener: IntervalDetector.OnDynamicIntervalDetectedListener<I>? = null, var resetListener: IntervalDetector.OnResetListener<I>? = null, var accuracyChangedListener: SensorCollector.OnAccuracyChangedListener? = null)

Base class for interval detectors. Interval detectors detect static or motion intervals of measurements captured by different sensors (accelerometer, gyroscope or magnetometer), which typically indicate whether the device is moving or not. When detector is tarted, initialization occurs to determine the noise level of the sensor while keeping device static. Once the detector is initialized, then static or dynamic intervals can be detected. This detector uses accumulated average values during static intervals, and windowed averages as "instantaneous" values during dynamic intervals. Length of windows, as well as thresholds to determine when changes between static and dynamic intervals occur can be easily configured.

Link copied to clipboard
class MagnetometerIntervalDetector(context: Context, val sensorType: MagnetometerSensorType = MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.FASTEST, initializationStartedListener: IntervalDetector.OnInitializationStartedListener<MagnetometerIntervalDetector>? = null, initializationCompletedListener: IntervalDetector.OnInitializationCompletedListener<MagnetometerIntervalDetector>? = null, errorListener: IntervalDetector.OnErrorListener<MagnetometerIntervalDetector>? = null, staticIntervalDetectedListener: IntervalDetector.OnStaticIntervalDetectedListener<MagnetometerIntervalDetector>? = null, dynamicIntervalDetectedListener: IntervalDetector.OnDynamicIntervalDetectedListener<MagnetometerIntervalDetector>? = null, resetListener: IntervalDetector.OnResetListener<MagnetometerIntervalDetector>? = null, var measurementListener: MagnetometerSensorCollector.OnMeasurementListener? = null, accuracyChangedListener: SensorCollector.OnAccuracyChangedListener? = null) : IntervalDetector<MagnetometerIntervalDetector, MagnetometerSensorCollector, MagneticFluxDensityUnit, MagneticFluxDensity, MagneticFluxDensityTriad, MagneticFluxDensityTriadStaticIntervalDetector, MagneticFluxDensityTriadStaticIntervalDetectorListener>

Detects static or motion intervals of time by using the magnetometer of the device to determine whether the device is moving or not. When detector is started, initialization occurs to determine the magnetometer noise level while keeping device static. Once the detector is initialized, then static or dynamic intervals can be detected. This detector uses accumulated average values during static intervals, and windowed averages as "instantaneous" values during dynamic intervals. Length of windows, as well as thresholds to determine when changes between static and dynamic intervals occur can be easily configured. This interval detector converts sensor measurements from device ENU coordinates to local plane NED coordinates. Thus, all values referring to a given x-y-z coordinate refers to local plane NED system of coordinates.

Link copied to clipboard
enum Status : Enum<Status>

Interval detection status values.