gps

package
v0.0.0-...-7973168 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSerial

func StartSerial(serialPortPath string, baudrate int) chan GPSRecord

Types

type GPSRecord

type GPSRecord struct {
	UnixMicro uint64
	Lat       float64
	Long      float64
	Alt       float64
	Speed     float64
	Heading   float64
	NumSats   int64
	TimeStr   string
}

func Parse

func Parse(data string) (GPSRecord, error)

func (GPSRecord) Turned

func (g GPSRecord) Turned(from, to GPSRecord) bool

type SerialClose

type SerialClose func() error

type SerialRead

type SerialRead func() (GPSRecord, error)

Jump to

Keyboard shortcuts

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