diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-07-19 13:22:16 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-23 00:19:24 +0200 |
commit | 1dfa6732e026c69472c821d83346cc66bcf3e476 (patch) | |
tree | 2a50d0c9643bedae073a4d8477cdc4af7260e49f /src/plugins/sensors/blackberry/bbgyroscope.cpp | |
parent | 505dbc8230414a31cd3def9f2d8b144b0e9444f4 (diff) |
Blackberry: Use the rotation matrix as the compass source
This fixes the direction flipping over when holding the device
upside-down.
Change-Id: I57bac63208d475d4091b47593b9768613eea30b0
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'src/plugins/sensors/blackberry/bbgyroscope.cpp')
-rw-r--r-- | src/plugins/sensors/blackberry/bbgyroscope.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/sensors/blackberry/bbgyroscope.cpp b/src/plugins/sensors/blackberry/bbgyroscope.cpp index 5372b55d..5280c5d6 100644 --- a/src/plugins/sensors/blackberry/bbgyroscope.cpp +++ b/src/plugins/sensors/blackberry/bbgyroscope.cpp @@ -43,6 +43,8 @@ #include "bbutil.h" #include <QtCore/qmath.h> +using namespace BbUtil; + BbGyroscope::BbGyroscope(QSensor *sensor) : BbSensorBackend<QGyroscopeReading>(devicePath(), SENSOR_TYPE_GYROSCOPE, sensor) { |