gps
This module can be used to obtain GPS coordinates from any receiver which exposes a serial interface.
Commands
Section titled “Commands”gps on
Section titled “gps on”Start acquiring from the GPS hardware.
gps off
Section titled “gps off”Stop acquiring from the GPS hardware.
gps.show
Section titled “gps.show”Show the last coordinates returned by the GPS hardware.
gps.set LAT LON
Section titled “gps.set LAT LON”Manually set GPS location.
Parameters
Section titled “Parameters”Parameter | Default | Description |
---|---|---|
gps.baudrate | 19200 | Baud rate of the GPS serial device. |
gps.device | /dev/ttyUSB0 | Serial device of the GPS hardware. |
Examples
Section titled “Examples”Turn on GPS, wait for 5 seconds and then show the current coordinates:
gps on; sleep 5; gps.show