gnss

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 4 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

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

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

MarshalJSON implements the json.Marshaler interface for System

func (System) String

func (s System) String() string

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

func (*System) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for System

type Systems added in v0.18.1

type Systems []System

Systems is a slice of GNSS systems

func (Systems) Sort added in v0.18.1

func (systems Systems) Sort()

Sort systems

func (Systems) String added in v0.18.8

func (systems Systems) String() string

String returns the string representation of the systems (e.g. "GPS+GLONASS")

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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