Package: qml-module-qtpositioning Version: 5.15.2+dfsg-2 Severity: important Tags: upstream X-Debbugs-Cc: tpiko...@gmail.com
The Altitude, Direction and Speed values are always set to 1 in Position values from QML PositionSource at least when running with the geoclue2 backend. To repeat, run this QML script with `qmlscene` on system with GeoClue2 as a position source (the values below are from modem-gps GeoClue source): ``` import QtPositioning 5.15 PositionSource { id: src updateInterval: 1000 active: true onPositionChanged: { var coord = src.position.coordinate; var pos = src.position; console.log("Latitude:", coord.latitude); console.log("Longitude:", coord.longitude); console.log("horizontalAccuracy:", pos.horizontalAccuracy, pos.horizontalAccuracyValid); console.log("Altitude:", coord.altitude, pos.altitudeValid); console.log("Speed:", pos.speed, pos.speedValid); console.log("Direction:", pos.direction, pos.directionValid); console.log("Timestamp:", pos.timestamp); console.log(""); } } ``` I get this output (after getting a GPS fix): ``` qml: Latitude: <redacted> qml: Longitude: <redacted> qml: horizontalAccuracy: 1 true qml: Altitude: 1 true qml: Speed: 1 true qml: Direction: 1 true qml: Timestamp: Sun Oct 10 21:14:26 2021 GMT+0300 qml: qml: Latitude: <redacted> qml: Longitude: <redacted> qml: horizontalAccuracy: 1 true qml: Altitude: 1 true qml: Speed: 1 true qml: Direction: 1 true qml: Timestamp: Sun Oct 10 21:14:27 2021 GMT+0300 qml: qml: Latitude: <redacted> qml: Longitude: <redacted> qml: horizontalAccuracy: 1 true qml: Altitude: 1 true qml: Speed: 1 true qml: Direction: 1 true qml: Timestamp: Sun Oct 10 21:14:28 2021 GMT+0300 ``` At the same time, the geoclue test client `/usr/libexec/geoclue-2.0/demos/where-am-i` gives this output: ``` New location: Latitude: <redacted> Longitude: <redacted> Accuracy: 1.000000 meters Altitude: 29.100000 meters Speed: 0.026536 meters/second Heading: 0.000000° Timestamp: Sun Oct 10 21:14:38 2021 (1633889678 seconds since the Epoch) New location: Latitude: <redacted> Longitude: <redacted> Accuracy: 1.000000 meters Altitude: 28.900000 meters Speed: 0.037632 meters/second Heading: 0.000000° Timestamp: Sun Oct 10 21:14:39 2021 (1633889679 seconds since the Epoch) New location: Latitude: <redacted> Longitude: <redacted> Accuracy: 1.000000 meters Altitude: 28.200000 meters Speed: 0.014104 meters/second Heading: 0.000000° Timestamp: Sun Oct 10 21:14:40 2021 (1633889680 seconds since the Epoch) ``` -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: arm64 (aarch64) Kernel: Linux 5.13-sunxi64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_CRAP Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages qml-module-qtpositioning depends on: ii libc6 2.32-4 ii libqt5core5a 5.15.2+dfsg-12 ii libqt5positioning5 5.15.2+dfsg-2 ii libqt5positioning5-plugins 5.15.2+dfsg-2 ii libqt5positioningquick5 5.15.2+dfsg-2 ii libqt5qml5 [qtdeclarative-abi-5-15-2] 5.15.2+dfsg-8 ii libqt5quick5 5.15.2+dfsg-8 ii libstdc++6 11.2.0-8 qml-module-qtpositioning recommends no packages. qml-module-qtpositioning suggests no packages. -- no debconf information