gps_shifter

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gps-shifter

Gets a nmea data from serial port and sets a movement to needed location

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocation

func GetLocation(sentence string) (nmea.GLL, error)

Types

type Receiver

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

func NewReceiver

func NewReceiver(portName string, bufferSize, baudRate int) (*Receiver, error)

func (*Receiver) ReceiveNMEAData

func (r *Receiver) ReceiveNMEAData(out chan nmea.GLL)

type Shifter

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

func NewShifter

func NewShifter(receiver *Receiver, startPoint Vector2D) *Shifter

func (*Shifter) Shift

func (s *Shifter) Shift(out chan Vector2D, startPoint Vector2D)

type Vector2D

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

func GetDelta

func GetDelta(start, stop nmea.GLL) Vector2D

func NewVector2D

func NewVector2D(x2, y2, x1, y1 float64) Vector2D

func ParseVector2DFromString added in v0.0.4

func ParseVector2DFromString(input string) (Vector2D, error)

func (Vector2D) Length

func (v Vector2D) Length() float64

func (Vector2D) String

func (v Vector2D) String() string

Directories

Path Synopsis
example
cmd command

Jump to

Keyboard shortcuts

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