Hi Marcel

Thanks for posting your code.

In the meantime I have dug out and posted the SatInfoSource demo I played around with at Christmas - at the time on the Emulator (my Jolla only arrived on the 30th Dec).

https://github.com/sailfishapps/ThrowawayDemos/tree/master/Kaputt/SatInfoSourceDemo

Running this on the real Jolla you will see in the application output that is no SatelliteInfoSource installed. So we need to work out if there is a plugin that provides this, and install it.

The plugins should have a jason file with values like:

"Position": true,
"Satellite": true,

See the link below for more info.

http://qt-project.org/doc/qt-5/qtpositioning-plugins.html


When I last looked (Qt 4.8 Mobility Location 1.2) there was no SatelliteInfoSource exposed to QML "out-of-the-box". After studying the source code I think the reason was down to the problem of exchanging lists between C++ and QML. I would need to wade deep in the code again to explain more precisely / accurately.

As all I needed was the number of Satellites in view / use I just wrote my own plugin to expose that to QML. C++ is not my main programming language - I follow the cut-and-paste school, so the code may not be the best reference, but it did work for my purposes. By all means adapt it if you want.

Chris




Zitat von Marcel <mar...@aliquis.de>:

Hi Chris,

I've pushed my existing code to github for you, but be warned, it is chaotic,
and my first "real" qt project. There is a lot to do...

https://github.com/balta3/sailfish-gpsinfo

The QML position source is working here, and you can see the compass access,
too. Is there any existing QML component for SatelliteInfoSource? I try to
access it in C++ as I could not find any in the Qt documentation.

Greetings,
Marcel

Am Sonntag, 12. Januar 2014 schrieb christopher.l...@thurweb.ch:
Hi Marcel.

The fast response is pure self interest - I am fighting with GPS code
myself right now!

Are you using SatelliteinfoSource from C++ or QML?

on Harmattan I wrote my own C++ plugin to expose SatsInuse and
SatsInView to QML as this was not available in QML for Qt Mobility 1.2
Location.

If you have example of working QML PositionSource code I would love to
see it, as I get errors when I call the start() method on a real Jolla
- this is the subject of another thread which I will update in the
next few minutes

Grüsse

Chris

p.s. I think during Christmas I wrote a throwaway demo for
SatelliteInfoSource on Qt5, I will dig that out again and give it a
whorl on my Jolla.




Zitat von Marcel <mar...@aliquis.de>:

> Hi Chris,
>
> Thanks for the quick response on a sunday... I've already seen that there
is
> no GPS in the Emulator, but since Friday I have my own Jolla device :)
>
> As first project I'm trying to create a simple app showing the GPS infos
> similiar to "GPS Info Qt" on Symbian.
>
> QML PositionSource (and in C++ QGeoPositionInfoSource) is working without
> problems on my real device (besides the accuracies are the same as stated
in
> my first mail), so I can access the hardware, but there seems to be
something
> missing for the SatelliteInfoSource.
>
> Greetings,
> Marcel
>
> Am Sonntag, 12. Januar 2014 schrieb christopher.l...@thurweb.ch:
>> Hoi Marcel
>>
>> Good to see a fellow Sailfish GPS hacker at work.
>>
>> I am fighting with PositionSource (in QML), but have not got as far as
>> SatelliteInfoSource on a real device - but I hope to soon, as the app
>> I am porting has a C++ plugin to expose SatelliteInfoSource to QML.
>>
>> You don't state what target you are using.
>>
>> If your target is the Emulator, then I don't think you will be able to
>> get SatelliteInfoSource working. Evidently the Emulator has no real
>> GPS hardware, and as far as I know there is not (yet) a working
>> simulator plugin that would provide SatelliteInfoSource.
>>
>> You should find a thread on this topic in this mailing-list from
>> around Christmas time.
>>
>> Grüsse
>>
>> Chris
>>
>>
>> Zitat von Marcel <mar...@aliquis.de>:
>>
>> > Hi,
>> >
>> > I'm trying to get satellite information using QGeoSatelliteInfoSource,
but
> I
>> > cannot create a default source. Is it not implemented in Sailfish? I
>> > know that
>> > Sailfish is using Geoclue, and there is a commit in Qt for supporting
the
>> > Geoclue Satellite interface:
>> >
>> >
>
https://qt.gitorious.org/qt/qtlocation/commit/e09d297894a8b4ff9b06317169b5a9eb97aa7162
>> >
>> > Is this missing in the Sailfish-Qt-packages? Is the satellite interface
>> > missing in the Sailfish-Geoclue? Is it another problem? Can I access
the
>> > satellite information in another way?
>> >
>> > Another small partly related problem I found then using the GPS is the
>> > following: If you use QGeoPositionInfoSource the VerticalAccuracy and
the
>> > HorizontalAccuracy are always the same, is this normal behaviour?
>> >
>> > Greetings,
>> > Marcel
>> > _______________________________________________
>> > SailfishOS.org Devel mailing list
>> >
>>
>>
>>
> _______________________________________________
> SailfishOS.org Devel mailing list



_______________________________________________
SailfishOS.org Devel mailing list



_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to