gnss

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System int

System stores the GNSS constellation type

const (
	SystemUnknown System = iota
	GPS
	GLONASS
	SBAS
	GALILEO
	BEIDOU
	QZSS
	IRNSS
)

func ParseSystemChar added in v0.16.0

func ParseSystemChar(s string) (System, error)

ParseSystemChar parses a single character string into a System type

func (System) Char

func (sys System) Char() string

Char returns the single character representation of the system (e.g. "G")

func (System) Int

func (sys System) Int() int

Int returns the integer representing the system as an int

func (System) MarshalJSON added in v0.13.0

func (s System) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for System

func (System) String added in v0.10.0

func (s System) String() string

String returns the string representation of the system (e.g. "GPS")

func (*System) UnmarshalJSON added in v0.13.0

func (s *System) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for System

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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