dialect

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 2 Imported by: 33

Documentation

Overview

Package dialect contains the dialect definition and its parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect struct {
	// Version is the dialect version.
	Version int

	// Messages contains the messages of the dialect.
	Messages []message.Message
}

Dialect is a Mavlink dialect.

type ReadWriter

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

ReadWriter is a Dialect Reader and Writer.

func NewReadWriter

func NewReadWriter(d *Dialect) (*ReadWriter, error)

NewReadWriter allocates a ReadWriter.

func (*ReadWriter) GetMessage

func (rw *ReadWriter) GetMessage(id uint32) *message.ReadWriter

GetMessage returns the ReadWriter of a message.

Jump to

Keyboard shortcuts

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