Author Topic: API for accessing gps info  (Read 2151 times)

0 Members and 1 Guest are viewing this topic.

Offline fogg42Topic starter

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
API for accessing gps info
« on: October 22, 2009, 06:08:58 PM »
I am a high school student currently building a gps navigated wheelchair. However where ever i look i cannot find an API for the GPS that I am using which is a Navman s100.  If anyone knows a better gps to use that is cheap or of some sort of universal or specific API or other method i could use to access the input and output data of the GPS. Without this information my project is stuck and there is nothing else i can work on so any info would be greatly appreciated.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: API for accessing gps info
« Reply #1 on: October 23, 2009, 05:40:25 PM »
Look like your device is self contained ie GPS+screen etc.
As far as I can see it doesn't have any USB/serial socket to output the raw GPS data from the GPS receiver it uses.
No output = no programming !! Except on the device itself - and this isn't a 'software site for developing Navman S100 programs'.

If you are wanting to use a GPS to control a robot then you will need to get your hands on the GPS NMEA messages output by the GPS receiver chip.
You can either buy a barebones GPS chip/module or find a device like the Navman which also outputs these messages

For one example: look at the parallax GPS module.

If you are using the Axon then my library (see signature) handles the messages and make the stuff like longitude/lattitude etc available to your program.

.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline robortwillys

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Re: API for accessing gps info
« Reply #2 on: October 29, 2009, 06:27:14 AM »

Using the W3C Geolocation API we can access the users position much the same way a native application would. The user can either allow or disallow the current websites’ access to your location.

Use the Service or Content with any products, systems, or applications for or in connection with :

(i) real time navigation or route guidance, including but not limited to turn-by-turn route guidance that is synchronized to the position of a user’s sensor-enabled device; or
(ii) any systems or functions for automatic or autonomous control of vehicle behaviour.

Offline fogg42Topic starter

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Re: API for accessing gps info
« Reply #3 on: October 29, 2009, 09:01:20 AM »

No output = no programming !! Except on the device itself - and this isn't a 'software site for developing Navman S100 programs'.

I don't know if this changes anything but i made a blunder in my intial post. It turns out the gps i am attempting to use is not the s100 series but the gps100 series or model number MN176A. This gps connects to a computer using a gps via a usb port therefore it must have an output right?? i may be wrong but if this changes anything i am still looking for any ideas which may work including this gps or any other means of connecting the wheel chair to another type of gps.

Offline billhowl

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 32
  • Your success is in your hands.
Re: API for accessing gps info
« Reply #4 on: October 31, 2009, 07:46:28 AM »
Navman GPS100 Series GPS receivers support NMEA, you can find many support for this NMEA messages output API.

Offline fogg42Topic starter

  • Beginner
  • *
  • Posts: 3
  • Helpful? 0
Re: API for accessing gps info
« Reply #5 on: December 07, 2009, 06:55:04 AM »
Thanks to everyone who posted already. I've gotten a little bit further with my project however now i am wondering if anyone knows of a NMEA data parsing program which runs with C++.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: API for accessing gps info
« Reply #6 on: December 10, 2009, 02:03:46 PM »
AVRlib has an NMEA file. Its in C but will also work in C++.

Its an alpha version - so may not handle all messages or be 100% correct. But armed with the NMEA message spec and this code you should be able to adapt it.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk