diff options
author | Wolfgang Beck <wolfgang.beck@nokia.com> | 2011-11-09 10:10:10 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-09 01:13:00 +0100 |
commit | 1452d2a4a691f92f32c35e0f8017c1f0adf4257d (patch) | |
tree | cb17843358e3f37cee7a6e829521dd967bb29061 /src/imports | |
parent | fa6e82c412f604f0306004d7adda309d2d5d773b (diff) |
Make TiltSensor 100% code coverage
Change-Id: If769dc2f6b8652f3b1cbbd532cd11498a65c2317
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/sensors2/qsensor2tilt.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/imports/sensors2/qsensor2tilt.cpp b/src/imports/sensors2/qsensor2tilt.cpp index b173b0db..802b6e41 100644 --- a/src/imports/sensors2/qsensor2tilt.cpp +++ b/src/imports/sensors2/qsensor2tilt.cpp @@ -283,17 +283,6 @@ inline qreal calcRoll(double Ax, double Ay, double Az) return (float)atan2(Ay, (sqrt(Ax * Ax + Az * Az))); } -/* - Angle between Z Axis relative to the Gravity - | sqrt(Ax * Ax + Ay* Ay) | - theta = arctan| ----------------------- | - | Az | -*/ -inline qreal calcTheta(double Ax, double Ay, double Az) -{ - return (float)atan2((sqrt(Ax * Ax + Ay * Ay)), Az); -} - /*! \qmlproperty qreal QtSensors5::TiltSensor::accuracy This property contains the accuracy (in degrees) in which the rotation should be measured. |