summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@jollamobile.com>2013-08-01 09:32:42 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-01 09:18:28 +0200
commitc7a09160444112c9b399b15442547c1ed3a8012f (patch)
tree1d22e90b0b6b7206e6c945e76b7d93c4adae7889
parenta477928c43d7207cbc77a1d233ecb41ef4f5fe51 (diff)
downloadqtsensors-c7a09160444112c9b399b15442547c1ed3a8012f.tar.gz
qtsensors-c7a09160444112c9b399b15442547c1ed3a8012f.tar.bz2
qtsensors-c7a09160444112c9b399b15442547c1ed3a8012f.zip
use 9.80665 as standard gravity for calculations.
Task-number: QTBUG-32751 Change-Id: I65076fa41d5c6a4e716df96bc5156068c1bd0040 Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
-rw-r--r--src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp b/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp
index b41d630..fde2b97 100644
--- a/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp
+++ b/src/plugins/sensors/sensorfw/sensorfwsensorbase.cpp
@@ -45,8 +45,7 @@
SensorManagerInterface* SensorfwSensorBase::m_remoteSensorManager = 0;
//According to wikipedia link http://en.wikipedia.org/wiki/Standard_gravity
-//const float sensorfwsensorbase::GRAVITY_EARTH = 9.812865328;
-const float SensorfwSensorBase::GRAVITY_EARTH_THOUSANDTH = 0.009812865328;
+const float SensorfwSensorBase::GRAVITY_EARTH_THOUSANDTH = 0.00980665;
const int SensorfwSensorBase::KErrNotFound=-1;
const int SensorfwSensorBase::KErrInUse=-14;
QStringList SensorfwSensorBase::m_bufferingSensors = QStringList()