wayland/gps@0.0.4

License: GNU Lesser General Public License v2.1

Arduino NMEA (National Marine Electronics Association) parsing library (wraps https://github.com/mikalhart/TinyGPSPlus). Provides nodes for extracting position, date, time, altitude, speed, and course from consumer GPS devices. Tested using a NEO-6M.
NodeDescription
01-example
Demonstration of a selection of the nodes in the library. Run in debugger.
02-example
Log coordinates to a file on a SD card.
03-example
Calculate distance and course to a destination. Run in debugger. Enter coordinates (decimal degrees) of destination in the tweak-number nodes.
cardinal
Convert course (decimal degrees) to cardinal direction.
encode
Parse NMEA data stream.
distance-between
Calculates distance in metres between two positions, both specified as signed decimal-degrees latitude and longitude. Uses great-circle distance computation for hypothetical sphere of radius 6372795 meters. Because Earth is no exact sphere, rounding errors may be up to 0.5%.
get-altitude-feet
Read altitude in feet.
course-to
Calculates course in degrees (North=0, West=270) from position 1 to position 2, both specified as signed decimal-degrees latitude and longitude. Because Earth is no exact sphere, calculated course may be off by a tiny fraction.
get-altitude-miles
Read altitude in miles.
get-date
Read date.
get-datetime
Read datetime.
get-altitude-metres
Read altitude in metres.
get-diagnostics
Retrieve data that can help diagnose problems with streaming data from the GPS.
get-precision
Read horizontal dilution of precision (HDOP). HDOP provides a measure of accuracy in 2-D position (i.e. Latitude and Longitude).
get-satellite-count
Get number of satellites currently being used.
get-speed-kmph
Read speed in kilometres per hour.
get-speed-mps
Read speed in metres per second.
get-speed-mph
Read speed in miles per hour.
get-time
Read time.
gps-device
Create a gps-device.
get-altitude-km
Read altitude in kilometres.
get-location
Read latitude and longitude.
get-speed-knots
Read speed in knots.
To use the nodes in your project you should have the wayland/gps library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.