message

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	// MsgID returns message id
	MsgID() MessageID
	// String returns human-readable representation on Message
	String() string
	// Dict returns key-value dictionary of Message internal fields
	Dict() map[string]interface{}
	// Marshal encodes Packet to byte slice
	Marshal() ([]byte, error)
	// Unmarshal parses PAYLOAD and stores the result in Packet
	Unmarshal(payload []byte) error
}

Message is a basic type for encoding/decoding mavlink messages. use the Pack() and Unpack() routines on specific message types to convert them to/from the Packet type.

type MessageID

type MessageID uint32

MessageID typedef

Jump to

Keyboard shortcuts

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