From 825ae95d8984a3daa49ad81a91e85483918799af Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Mon, 11 Aug 2014 12:41:02 +0200 Subject: Clarify the QCompass coordinate system The compass behaves like the other sensors: it is measured relative to the top of the device. Change-Id: Iddc4ad6a16f8b09d26a9d300155324bb8d378b76 Reviewed-by: Alex Blasche Reviewed-by: Lorn Potter --- src/sensors/qcompass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sensors') diff --git a/src/sensors/qcompass.cpp b/src/sensors/qcompass.cpp index 8bfca073..6564d362 100644 --- a/src/sensors/qcompass.cpp +++ b/src/sensors/qcompass.cpp @@ -56,7 +56,8 @@ IMPLEMENT_READING(QCompassReading) \section2 QCompassReading Units The compass returns the azimuth of the device as degrees from - magnetic north in a clockwise direction based on the top of the UI. + magnetic north in a clockwise direction based on the top of the device, + as defined by QPlatformScreen::nativeOrientation. There is also a value to indicate the calibration status of the device. If the device is not calibrated the azimuth may not be accurate. @@ -75,7 +76,7 @@ IMPLEMENT_READING(QCompassReading) \brief the azimuth of the device. Measured in degrees from magnetic north in a clockwise direction based - the top of the UI. + the top of the device, as defined by QPlatformScreen::nativeOrientation. \sa {QCompassReading Units} */ -- cgit v1.2.3