QCompassReading Class Reference
The QCompassReading class represents one reading from a compass. More...
#include <QCompassReading>
Inherits QSensorReading.
Properties
- azimuth : const qreal
- calibrationLevel : const qreal
- 1 property inherited from QSensorReading
Public Functions
qreal | azimuth () const |
qreal | calibrationLevel () const |
void | setAzimuth ( qreal azimuth ) |
void | setCalibrationLevel ( qreal calibrationLevel ) |
- 4 public functions inherited from QSensorReading
Detailed Description
The QCompassReading class represents one reading from a compass.
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. 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.