[maemo-developers] powering on gps, playing nice with others
From: Brad Midgley bmidgley at gmail.comDate: Thu Aug 7 07:44:03 EEST 2008
- Previous message: Gtk Dialog box causing application to crash
- Next message: powering on gps, playing nice with others
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey
I'm having trouble finding the way to power on the gps for my own
program in a way that plays nice with maemo mapper. IIt might be that
maemo mapper is bending some rules too but it's hard to tell.
If I use the call gpsbt_start(NULL, 0, 0, 0, errors, 256, 0, &ctx)
then the gps will start and before long I have coordinates. However,
if I then start up maemo mapper, stop the gps from my app, then stop
the gps from maemo mapper, the gps is left running.
If I use the call gpsmgr_start("/usr/sbin/gpsd", NULL,
"/tmp/.gpsd_ctrl_sock", 0, 0, &ctx) then gpsd apparently starts but is
not connected properly to anything because I never get coordinates.
Also if I then run maemo mapper, it keeps saying it's looking for a
gps, not even to the point where it's trying to get a fix.
The docs are a bit confusing on this and have a mix of old and new
approaches. I'm using diablo, I expect the user to set the gps
location in the gps preferences panel, so I don't expect to have to
specify the gps device. Maemo mapper even seems a little mixed up on
this front since what you do is specify in its prefs that you have a
bt gps but the address you specify there is ignored and the system
preference is used.
thanks for any tips
Brad
- Previous message: Gtk Dialog box causing application to crash
- Next message: powering on gps, playing nice with others
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
