-
public class SensorConfigManagerAPI 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.
-
-
Constructor Summary
Constructors Constructor Description SensorConfigManager(Context appC)Constructor.
-
Method Summary
Modifier and Type Method Description booleanisServiceReady()Can be used to poll if service is ready. voidconnect()Binds to service. voiddisconnect()Tear downs the connection by unbinding from service. booleanuseAngleLiveAccBias(boolean enable)Setting stored in SensorConfig for if Angle Live Acceleration Bias is to be activated in the IMUs. booleanisAngleLiveAccBiasEnabled()Method for retrieving if IMU Angle Live Acceleration Bias is enabled in the sensor config settings. booleansetAngleUpdatePeriod(int period)intgetAngleUpdatePeriod()-
-
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.
-
setAngleUpdatePeriod
boolean setAngleUpdatePeriod(int period)
-
getAngleUpdatePeriod
int getAngleUpdatePeriod()
-
-
-
-