outputters

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GGA

type GGA struct{}

GGA is an Outputter that returns a GPGGA NMEA sentence

func (*GGA) Output

func (g *GGA) Output(p xplane.Position) (string, error)

Output returns a GPGGA NMEA sentence

type Outputter

type Outputter interface {
	Output(xplane.Position) (string, error)
}

Outputter is the interface that takes a xplane Position and returns a string for use as output eg NMEA sentences

type VTG

type VTG struct{}

VTG is an Outputter that returns a GPVTG NMEA sentence

func (*VTG) Output

func (v *VTG) Output(p xplane.Position) (string, error)

Output returns a GPVTG NMEA sentence

Jump to

Keyboard shortcuts

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