As I begin my quest to build an autonomous vehicle (something very small resembling a RC truck), I soon realized I’d need access to GPS data. I purchased the Adafruit Ultimate GPS Breakout module, was able to quickly connect and receive GPS data following the Adafruit tutorial (with a Raspbian SD card in my Pi).
However, I needed GPS data from the breakout module while running Win10 IoT core. I decided to take on the task of writing my own UWP class library. I wanted something that was UWP based, reusable and would provide event notification when new GPS data becomes available.
The Visual Studio SolutionThe VisualStudio solution (provided within the Code section below) contains two projects. The lib_NMEA_GPS
project is a class library that handles the workload of sending/receiving serial data to/from the GPS module, decoding the data received, packaging the data (based on the type of data received) and passing the data to a subscriber of the event associated with the type of data received.
The appAdfUltGPS
project illustrates the use of the class library. This application contains a page associated with each of the event notifications available from the class library. The photos below show each of the application's pages:
Comments