O'Reilly logo

Mastering BeagleBone Robotics by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Parsing the GPS information

Your project will now have the GPS connected and also have access to querying the data via serial port. In this section, you will create a program to use this data to find where you are, and then you can determine what to do with that information.

If you have completed the last section, you should be able to receive the raw data from the GPS unit. Now you will be able to take this data and do something with it. For example, you can find your current latitude, longitude, and altitude, and then decide if your goal location is to the east or west, and to the north or south.

The first thing you'll need to do is parse the information out of the raw data. As noted previously, your position and speed are in the $GPMRC output ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required