wayland/gps@0.0.2

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
02-example
Log coordinates to a file on a SD card.
01-example
Demonstration of a selection of the nodes in the library. Run in debugger.
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.
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%.
cardinal
Convert course (decimal degrees) to cardinal direction.
get-altitude-metres
Read altitude in metres.
03-example
Calculate distance and course to a destination. Run in debugger. Enter coordinates (decimal degrees) of destination in the tweak-number nodes.
get-altitude-km
Read altitude in kilometres.
get-datetime
Read datetime.
get-diagnostics
Retrieve data that can help diagnose problems with streaming data from the GPS.
get-altitude-miles
Read altitude in miles.
encode
Parse NMEA data stream.
get-precision
Read horizontal dilution of precision (HDOP). HDOP provides a measure of accuracy in 2-D position (i.e. Latitude and Longitude).
get-speed-kmph
Read speed in kilometres per hour.
get-altitude-feet
Read altitude in feet.
get-speed-mph
Read speed in miles per hour.
get-speed-mps
Read speed in metres per second.
get-location
Read latitude and longitude.
gps-device
Create a gps-device.
get-time
Read time.
get-date
Read date.
get-speed-knots
Read speed in knots.
get-satellite-count
Get number of satellites currently being used.
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.