Skip to content

andyrobinson/pi-nav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-nav

Experiments in GPS with Raspberry Pi. See pi folder for instructions on setting up PI.

Instructions on setting up the Adafruit GPS can be found here:

https://learn.adafruit.com/downloads/pdf/adafruit-ultimate-gps-on-the-raspberry-pi.pdf

An example of accessing GPSD using the python-gps library (used as the basis for this implementation) is here:

http://www.danmandle.com/blog/getting-gpsd-to-work-with-python/

And after much searching, an explanation of the values returned by the GPS is in these two links:

http://theshipcomputer.blogspot.co.uk/2013/11/setting-up-gps-i-have-been-lucky-on-this.html http://http://catb.org/gpsd/gpsd_json.html

Fields in use

I'm interested in the following fields (condensed from table by George Theotokis in first reference above). The python library typically returns "nan" (Not a number) when values are not present. Note these properties are available from the gps.fix object.

NameAlways returned?TypeNotes
modeYesnumeric0=no mode value yet seen, 1=no fix, 2=2D, 3=3D. Used to determine if GPS has a fix.
timeNostringTime/date stamp in ISO8601 format, UTC. Might use to set system clock and/or for logging
latNonumericLatitude in degrees: +/- signifies West/East. Present when mode is 2 or 3.
lonNonumericLongitude in degrees: +/- signifies North/South. Present when mode is 2 or 3.
altNonumericAltitude in meters. Present if mode is 3. Don't care for this project
trackNonumericCourse over ground, degrees from true north.
speedNonumericSpeed over ground, meters per second.
climbNonumericClimb (positive) or sink (negative) rate, meters per second. Not used on this project
epxNonumericLongitude error estimate in meters, 95% confidence. Present if mode is 2 or 3 and DOPs can be calculated from the satellite view.
epyNonumericLatitude error estimate in meters, 95% confidence. Present if mode is 2 or 3 and DOPs can be calculated from the satellite view.
epvNonumericEstimated vertical error in meters, 95% confidence. Present if mode is 3 and DOPs can be calculated from the satellite view.
eptNonumericEstimated timestamp error. Present if time is present.
epdNonumericDirection error estimate in degrees, 95% confidence.
epsNonumericSpeed error estimate in meters/sec, 95% confidence.
epcNonumericClimb/sink error estimate in meters/sec, 95% confidence.

Other interesting contents

  • Controlling servos via the Polulu servo controller
  • Interfacing to the Adafruit combined compass accelerometer Adafruit LSM303DLHC, including tilt corrected compass
  • Using the I2C interface
  • Interfacing to a AS5048B rotatry shaft encoder via I2C, for a wind direction sensor

About

Experiments in GPS with Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published