gps

package
v0.0.0-...-76dc376 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: Apache-2.0 Imports: 11 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 is a driver for a serial attached NMEA GPS

func New

func New(deviceName string) GPS

New creates a new GPS component

func (*GPS) SetErrorChan

func (g *GPS) SetErrorChan(c chan interface{})

SetErrorChan sets the channel where parsing errors are posted

func (*GPS) SetHeadingChan

func (g *GPS) SetHeadingChan(c chan interface{})

SetHeadingChan sets the channel to the AP100 interface

func (*GPS) SetMessagesChan

func (g *GPS) SetMessagesChan(c chan interface{})

SetMessagesChan sets the channel where the GPS messages are delivered

func (*GPS) SetPanicChan

func (g *GPS) SetPanicChan(c chan interface{})

SetPanicChan sets the channel where panics are sent

func (*GPS) SetTracerChan

func (g *GPS) SetTracerChan(c chan interface{})

SetTracerChan sets the channel to the tracer

func (GPS) Start

func (g GPS) Start()

Start creates an infinite go routine which will try to open the serial port to the GPS and parse the input to deliver sentences or errors on the respective channels.

Jump to

Keyboard shortcuts

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