ublox

package module
v0.0.0-...-d5c9b0a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 5 Imported by: 2

README

ublox

Encoding and decoding of μ-Blox UBX and NMEA messages

GoDoc

This Go package implements encoders and decoders for the NMEA and UBX messages defined in u-blox 8 / u-blox M8 Receiver description chapters 31 and 32.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

A Decoder scans an io stream into UBX (0xB5-0x62 separated) or NMEA ("$xxx,,,,*FF\r\n") frames. If you have an unmixed stream of NMEA-only data you can use nmea.Decode() on bufio.Scanner.Bytes() directly.

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder creates a new bufio Scanner with a splitfunc that can handle both UBX and NMEA frames.

func (*Decoder) Decode

func (d *Decoder) Decode() (msg interface{}, err error)

Decode reads on NMEA or UBX frame and calls nmea.Decode or ubx.Decode accordingly to parse the message.

Directories

Path Synopsis
Package NMEA defines structures that can decode and encode the standard and proprietary NMEA messages emitted by μ-Blox devices.
Package NMEA defines structures that can decode and encode the standard and proprietary NMEA messages emitted by μ-Blox devices.
Package ubx contains definitions for UBX-XXX-YYY messages and functions to decode and encode them.
Package ubx contains definitions for UBX-XXX-YYY messages and functions to decode and encode them.

Jump to

Keyboard shortcuts

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