mavlink

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPacket

func NewPacket(v version.MAVLINK_VERSION, sysID uint8, compID uint8, message message.Message) (packet.Packet, error)

NewPacket function creates packet

Types

type Decoder

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

Decoder struct provide decoding processor

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

NewDecoder function create decoder instance

func (*Decoder) Decode

func (d *Decoder) Decode() (packet.Packet, error)

Decode decode input stream to packet. Method return error or nil

type Encoder

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

Encoder struct provide decoding processor

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder function creates encoder instance

func (*Encoder) Encode

func (e *Encoder) Encode(p packet.Packet) error

Encode encode packet to output stream. Method return error or nil on success

func (*Encoder) EncodeWithSignature

func (e *Encoder) EncodeWithSignature(p packet.Packet, linkID byte, timestamp time.Time, secretKey [32]byte) error

EncodeWithSignature encode packet with signature to output stream. Method return error or nil on success

Jump to

Keyboard shortcuts

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