Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 19,903 times

Contents

Downloads

Related Categories

GPS- Deriving British Ordnance Survey Grid Reference from NMEA data - Part 5 - Putting it to use

AlexE

Part 5 - Putting it to use

So now we have created the class, here is a small demo project in C# 2005 demonstrating its use by reading the NMEA from a GPS conected to a serial port and displaying the OS grid reference.

It's available in the downloads section to the left as NMEA2OSGdemo.zip

The project makes use of the NET 2 serialport class to read the GPS.
The NMEA strings are parsed via NMEAinterpreter
The lat and lon are parsed via NMEA2OSG
The resulting events caused the respective text boxes to be updated with the appropriate data.

Oh and I like to know the number of satellites in view and how many are in use by the GPS so this functionality is also added to the NMEAinterpreter class.



I hope this article has been useful and/or informative.

Accuracy of the conversion should be within less than 4 meters (which is better than the inbuilt conversion of my Garmin Vista)

If you need to know more about the underlying mathematics, I suggest you go to the resources refered to in the article as a deeper explanation is beyond me!

Alex Etchells  March 2006

Comments