<div dir="ltr">Hello, <div><br></div><div>I am using the QML compass sensor in my QML application. </div><div><br></div><div>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. </div>
<div><br></div><div>Is this expected behaviour, a known issue or something wrong on my side? </div><div><br></div><div>I have something like this in the code: </div><div><br></div><div><div>import QtQuick 2.0</div><div>import QtSensors 5.0</div>
</div><div><br></div><div><div>Item {</div><div> property real calibration: 1.0 <br></div><div> property real azimuth: 0.0 </div></div><div><br></div><div><div> Compass {</div><div> onReadingChanged: {</div>
<div> azimuth = reading.azimuth;<br></div><div> calibration = reading.calibrationLevel<br></div></div><div> }</div><div> }</div><div>}</div><div>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre></div><div><br></div><div>--</div><div>Jussi</div><div><br></div></div>