QCompassReading Class ReferenceThe QCompassReading class represents one reading from a compass. More... #include <QCompassReading> Inherits QSensorReading. Properties
Public Functions
Additional Inherited Members
Detailed DescriptionThe QCompassReading class represents one reading from a compass. QCompassReading UnitsThe compass returns the azimuth of the device as degrees from magnetic north in a clockwise direction based on the top of the UI. 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. Digital compasses are susceptible to magnetic interference and may need calibration after being placed near anything that emits a magnetic force. Accuracy of the compass can be affected by any ferrous materials that are nearby. The calibration status of the device is measured as a number from 0 to 1. A value of 1 is the highest level that the device can support and 0 is the worst. Property Documentation
|
qreal | azimuth () const |
See also QCompassReading Units.
This property holds the calibration level of the reading.
Measured as a value from 0 to 1 with higher values being better.
Access functions:
qreal | calibrationLevel () const |
See also QCompassReading Units.
Sets the azimuth of the device.
See also azimuth() and QCompassReading Units.
Sets the calibration level of the reading to calibrationLevel.
See also calibrationLevel().
© 2008-2010 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy