[maemo-developers] Urgent N800 with GPS
From: Doug Turner doug.turner at gmail.comDate: Mon Jul 14 22:05:45 EEST 2008
- Previous message: Urgent N800 with GPS
- Next message: Upgrade gcc version to 4.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Something like this should work:
#include <glib.h>
#include <errno.h>
#include <gpsbt.h>
#include <gpsmgr.h>
extern "C" {
// need to extern these because of:
// https://bugs.maemo.org/show_bug.cgi?id=3226
#include <location/location-gps-device.h>
#include <location/location-gpsd-control.h>
}
void location_changed (LocationGPSDevice *device, gpointer userdata)
{
}
gpsbt_t GPSBT;
memset(&GPSBT, 0, sizeof(gpsbt_t));
int result = gpsbt_start(NULL, 0, 0, 0, NULL, 0, 0, &GPSBT);
if (result <0) return some_reasonable_error
LocationGPSDevice * device = (LocationGPSDevice*) g_object_new
(LOCATION_TYPE_GPS_DEVICE, NULL);
gulong handle = g_signal_connect (device, "changed", G_CALLBACK
(location_changed), user_data);
On Jul 14, 2008, at 11:57 AM, nelson-lists at crynwr.com wrote:
> nisha jain writes:
>> Does some one has integrated GPS with N800 and have code or info
>> of proper
>> APIs pls let me know i urgently need to do it? How GPS can be
>> detected from
>> the host computer using maemo development enviornment?
>
> Sure, any bluetooth GPS receiver should work with it. Look at how
> maemo-mapper does it on the n800, or gpsd on the n810.
>
> --
> --my blog is at http://blog.russnelson.com | Software that needs
> Crynwr sells support for free software | PGPok | documentation is
> software
> 521 Pleasant Valley Rd. | +1 315-323-1241 | that needs repair.
> Potsdam, NY 13676-3213 | Sheepdog |
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
- Previous message: Urgent N800 with GPS
- Next message: Upgrade gcc version to 4.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
