1 gps
Simone Margaritelli edited this page 2018-03-06 20:11:09 +01:00

A module talking with GPS hardware on a serial interface.

Commands

command description
gps on Start acquiring from the GPS hardware.
gps off Stop acquiring from the GPS hardware.
gps.show Show the last coordinates returned by the GPS hardware.

Parameters

parameter default description
gps.device /dev/ttyUSB0 Serial device of the GPS hardware.
gps.baudrate 19200 Baud rate of the GPS serial device.

Examples

Turn on GPS, wait for 5 seconds and then show the current coordinates:

> gps on; sleep 5; gps.show