sensor_set_calibration()

Enable or disable sensor calibration.

Synopsis:

#include <bps/sensor.h>
 
BPS_API int sensor_set_calibration(sensor_type_t type,
                                   bool enable_calibration) BPS_DEPRECATED

Since:

BlackBerry 10.2.0

Arguments:

type

The sensor to enable or disable calibration for.

enable_calibration

If true calibration is enabled, if false calibration is disabled.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

Deprecated:

This function is deprecated.

The sensor_set_calibration() function enables or disables calibration for the specified sensor. The accuracy of a sensor might degrade over time. By enabling calibration, if sensor accuracy degrades by a significant amount, the sensor service calibrates the sensor. This improves sensor accuracy.

During normal operation of your application, you shouldn't need to call this function, because your application can rely on background calibration. You should enable calibration only if your application requires higher quality readings from a sensor. After the desired level of quality is reached, you should disable calibration; calibration should not be left enabled for an extended period of time.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus