[SailfishDevel] Calibration level of the compass sensor always 1.0?
Jussi Vuorisalmi
jussi.vuorisalmi at iki.fi
Tue Apr 29 19:59:57 UTC 2014
Hello,
I am using the QML compass sensor in my QML application.
The compass sensor and azimuth reading work as expected, but the
calibration level (reading.calibrationLevel) always seems to give just the
same value: 1.0 (i.e. 100%, perfectly calibrated). According to the
documentation the value should vary between 0.0-1.0.
Is this expected behaviour, a known issue or something wrong on my side?
I have something like this in the code:
import QtQuick 2.0
import QtSensors 5.0
Item {
property real calibration: 1.0
property real azimuth: 0.0
Compass {
onReadingChanged: {
azimuth = reading.azimuth;
calibration = reading.calibrationLevel
}
}
}
--
Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140429/903c9d75/attachment.html>
More information about the Devel
mailing list