Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Hello Aaron and list members, Selon Aaron McCarthy : > > but the direction is missing from QGeoPositionInfo, the method > > hasAttribute() on a valid GPS fix returns false, always. How to get the > > direction? Should one calculate it by hand ? > This is a bug in the Geoclue positioning plugin in Qt. I have filed a bug in > the Qt bug tracker: https://bugreports.qt-project.org/browse/QTBUG-36298 Ah, ok I see thanks for deposing a bug. I will follow it and as a work around, I'll use the previous position to approximate direction. Have a nice day, Damien. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Hi, On Mon, 20 Jan 2014 08:10:19 dcali...@free.fr wrote: > À Sun Jan 19 2014 22:32:47 GMT+0100 (CET), christopher.l...@thurweb.ch a > écrit > >1) The Compass Azimuth shows the direction the top of the device is > >pointing to (so it will change as your rotate the device). > > > >2) The PositionSource shows a direction based on the direction the > >device is travelling (irrespective of where the device is pointing). > > > >http://qt-project.org/doc/qt-5/qgeopositioninfo.html > > Sorry my explanation was not clear and lacking the question. So the two > things you're speaking about (compas and direction) are indeed the two > distinctions I was doing. My question is : ok, the compas is in QtSensor, > but the direction is missing from QGeoPositionInfo, the method > hasAttribute() on a valid GPS fix returns false, always. How to get the > direction? Should one calculate it by hand ? This is a bug in the Geoclue positioning plugin in Qt. I have filed a bug in the Qt bug tracker: https://bugreports.qt-project.org/browse/QTBUG-36298 Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Hello À Sun Jan 19 2014 22:32:47 GMT+0100 (CET), christopher.l...@thurweb.ch a écrit >1) The Compass Azimuth shows the direction the top of the device is >pointing to (so it will change as your rotate the device). > >2) The PositionSource shows a direction based on the direction the >device is travelling (irrespective of where the device is pointing). > >http://qt-project.org/doc/qt-5/qgeopositioninfo.html Sorry my explanation was not clear and lacking the question. So the two things you're speaking about (compas and direction) are indeed the two distinctions I was doing. My question is : ok, the compas is in QtSensor, but the direction is missing from QGeoPositionInfo, the method hasAttribute() on a valid GPS fix returns false, always. How to get the direction? Should one calculate it by hand ? Regards, Damien. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Salut Damien I am not sure If I have understood your question, but I think you are asking about differences in direction from the QtSensors Compass and the the QtPositioning PostionSource elements. 1) The Compass Azimuth shows the direction the top of the device is pointing to (so it will change as your rotate the device). 2) The PositionSource shows a direction based on the direction the device is travelling (irrespective of where the device is pointing). http://qt-project.org/doc/qt-5/qgeopositioninfo.html Similar to 2) The speed shown by a GPS is absolute, irrespective of how the device is pointing. Some years ago I was coastal soaring on the coast of South Africa when the wind picked up, and got to the point where it was at (and possibly just above) the maximum speed of my paraglider. Flying fully into the wind, pushing maximum speedbar the GPS was showing speeds of 0.5 - 1 Km, and it was very difficult to tell if this was fowrards or backwards - but it was most likely the latter. Cheers Chris Zitat von "Caliste Damien" : Bonsoir, Le dimanche 12 janvier 2014, christopher.l...@thurweb.ch a écrit : Marcel used the Compass element from QtSensors for azimuth. Ok, I understand, but I'm still wondering : - QtSensors and compas will provide the azimuth of the device, so acting it like a compas, for instance, top of the device is pointing to the north. - QGeoPosition is providing GPS info with latitude and longitude, and I was thinking that the direction attribute was in fact the first derivative of the position, which is different from the compas return value, for instance I'm moving west while pointing top of device to the north. So how to get the first derivative of GPS position, deriving it by hand ? Like calling the azimuth method on the two last GPS fix ? Have a nice week, Damien. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Bonsoir, Le dimanche 12 janvier 2014, christopher.l...@thurweb.ch a écrit : > Marcel used the Compass element from QtSensors for azimuth. Ok, I understand, but I'm still wondering : - QtSensors and compas will provide the azimuth of the device, so acting it like a compas, for instance, top of the device is pointing to the north. - QGeoPosition is providing GPS info with latitude and longitude, and I was thinking that the direction attribute was in fact the first derivative of the position, which is different from the compas return value, for instance I'm moving west while pointing top of device to the north. So how to get the first derivative of GPS position, deriving it by hand ? Like calling the azimuth method on the two last GPS fix ? Have a nice week, Damien. ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Salut Damien Marcel used the Compass element from QtSensors for azimuth. Chris Zitat von dcali...@free.fr: Hello, À Sun Jan 12 2014 17:17:11 GMT+0100 (CET), Marcel a écrit : The QML position source is working here, and you can see the compass access, too Do you have the direction attribute of QGeoPositionInfo that is set ? When using hasAttribute() method on a valid GPS info source, I always get false. Thanks, Damien. ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish
Hello, >À Sun Jan 12 2014 17:17:11 GMT+0100 (CET), Marcel a écrit : >>The QML position source is working here, and you can see the compass access, >>too Do you have the direction attribute of QGeoPositionInfo that is set ? When using hasAttribute() method on a valid GPS info source, I always get false. Thanks, Damien. ___ SailfishOS.org Devel mailing list