IEvsSensorsService

Interface defines the glasses sensors service

The service handles the various sensors exists on the glasses

see SensorRate for more information

Functions

Link copied to clipboard
abstract fun disableInertialSensors()

Disable all active inertial sensors and sensors fusion

Link copied to clipboard
abstract fun enableAccelerometer()

Enable the glasses accelerometer sensor

Link copied to clipboard
abstract fun enableAmbient(enable: Boolean)

Enable\disable the glasses ambient sensor

Link copied to clipboard
abstract fun enableGyro()

Enable the glasses gyro sensor

Link copied to clipboard
abstract fun enableInertialSensors()

Enable all inertial sensors: SensorType.mag. SensorType.mag, SensorType.acc

Link copied to clipboard
abstract fun enableMagneticDeclinationCorrection(lat: Float, lon: Float, alt: Float)

Enable magnetic declination correction for the given location

Link copied to clipboard
abstract fun enableMagnetometer()

Enable the glasses magnetometer sensor

Link copied to clipboard
abstract fun enableTouch(enable: Boolean)

Enable\disable the glasses touch sensor

Link copied to clipboard
abstract fun getSensorsRate(): SensorRate

Return the requested SensorRate

Link copied to clipboard
abstract fun getUsePrediction(): Boolean

Return the predication enable state that was set via setUsePrediction

Link copied to clipboard
abstract fun isEnabled(sensor: SensorType): Boolean

Returns the SensorType enable state

Link copied to clipboard
abstract fun isSupported(sensor: SensorType): Boolean

Returns true if the glasses firmware supports this sensor

Link copied to clipboard

Receive the proximity state

Link copied to clipboard

Register for inertial sensors callbacks

Link copied to clipboard

Register for quaternions fused sensors callbacks

Link copied to clipboard

Register for sensors callbacks

Link copied to clipboard

Register for Yaw Pitch Roll sensors callbacks

Link copied to clipboard
abstract fun setSensorsRate(rate: SensorRate)

Set the inertial sensors rate.

Link copied to clipboard
abstract fun setUsePrediction(usePrediction: Boolean)

Enable prediction when getting LOS data via registerYprSensorsEvents or registerQuaternionSensorsEvents

Link copied to clipboard

Unregister from inertial sensors callbacks

Link copied to clipboard

Unregister from quaternions fused sensors callbacks

Link copied to clipboard

Unregister from sensors callbacks

Link copied to clipboard

Unregister from fused sensors callbacks