BlackBerry: Update threshold for close detection
authorAndrew Inwood <ainwood@blackberry.com>
Mon, 10 Mar 2014 17:58:58 +0000 (13:58 -0400)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Mar 2014 15:50:00 +0000 (16:50 +0100)
commit5ed59ab19c145afd5ff7db47ee4b0c3c11f47c7a
treebc69bfdd12a2874f8b15ff9cbb046526c85a28f1
parentf89b0fcffbb7907210d4d85d1245dc59f270c251
BlackBerry: Update threshold for close detection

The current algorithm for close detection in QProximitySensor will not
work for sensors whose output is not binary (ie, close/far). The new
algorithm will use the threshold of 8cm when the output is not binary.

Change-Id: I2173e9afae0a2d29434e092e1afc09d1c6f5647c
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
src/plugins/sensors/blackberry/bbproximitysensor.cpp