Package 

Class SensorConfigManager


  • 
    public class SensorConfigManager
    
                        

    API class that exposes sensor configuration settings. Usage: Create object SensorConfigManager and connect to underlying service connect.

    Note! The connection towards the underlying service is asynchronous. This means that data is not ready immediately after connect, or the service is not able to serve commands. To know if underlying service is ready use isServiceReady.

    • Method Summary

      Modifier and Type Method Description
      boolean isServiceReady() Can be used to poll if service is ready.
      void connect() Binds to service.
      void disconnect() Tear downs the connection by unbinding from service.
      boolean useAngleLiveAccBias(boolean enable) Setting stored in SensorConfig for if Angle Live Acceleration Bias is to be activated in the IMUs.
      boolean isAngleLiveAccBiasEnabled() Method for retrieving if IMU Angle Live Acceleration Bias is enabled in the sensor config settings.
      boolean setAngleUpdatePeriod(int period)
      int getAngleUpdatePeriod()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SensorConfigManager

        SensorConfigManager(Context appC)
        Constructor.
        Parameters:
        appC - the context of the calling client.
    • Method Detail

      • isServiceReady

         boolean isServiceReady()

        Can be used to poll if service is ready.

      • connect

         void connect()

        Binds to service. Must be called before using the methods in this class.

        disconnect should be called when connection no longer needed.

      • disconnect

         void disconnect()

        Tear downs the connection by unbinding from service.

      • useAngleLiveAccBias

         boolean useAngleLiveAccBias(boolean enable)

        Setting stored in SensorConfig for if Angle Live Acceleration Bias is to be activated in the IMUs.

        Parameters:
        enable - true means enabled, false means disabled
      • isAngleLiveAccBiasEnabled

         boolean isAngleLiveAccBiasEnabled()

        Method for retrieving if IMU Angle Live Acceleration Bias is enabled in the sensor config settings.

        NOTE! Will return false if connection towards SensorConfig is not established.