gps

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gps

type Gps struct {
	// contains filtered or unexported fields
}

Gps represent a GPS receiver

func NewGps

func NewGps(portName string, baud uint, c chan data.GpsPos) *Gps

NewGps is used to create a new Gps type

func (*Gps) SetDebug

func (gps *Gps) SetDebug(d bool)

SetDebug can be used to turn debugging on and off

func (*Gps) Start

func (gps *Gps) Start()

Start is used to start reading the GPS, and data will be sent back through the handler

func (*Gps) Stop

func (gps *Gps) Stop()

Stop can be used to stop the GPS aquisition and close port

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL