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

Calculating distance and bearing

Now that you have the data, you can do some interesting things with it. For your sailboat, you'll need to use your current location and a desired new location to give your sailboat a distance and a bearing.

Longitude from your GPS device is a measure of where you are on the earth with respect to east/west. Latitude is a measure of where you are with respect to north/south. These readings are normally given in degrees (considering the fact that the globe is round, so the readings start at 0 degrees and end at 360 degrees.) Since the earth is very large, the readings also include minutes and seconds, where a single degree is divided into 60 minutes and each minute is divided into 60 seconds.

In order to calculate ...

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