paparazzi

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect struct{}

Dialect represents a collection of MAVLink messages

func (Dialect) GetMessage

func (d Dialect) GetMessage(frame mavlink2.Frame) (message mavlink2.Message, err error)

GetMessage extracts and parses the message contained in the Frame

func (Dialect) GetMeta

func (d Dialect) GetMeta(messageID uint32) (meta mavlink2.MessageMeta, err error)

GetMeta retrieves the metadata for the message. If no metadata is found, ErrUnknownMessage is returned

func (Dialect) GetName

func (d Dialect) GetName() string

GetName gets the name of the Dialect

type ScriptCount

type ScriptCount struct {
	/*Count Number of script items in the sequence */
	Count uint16
	/*TargetSystem System ID */
	TargetSystem uint8
	/*TargetComponent Component ID */
	TargetComponent uint8
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

ScriptCount This message is emitted as response to SCRIPT_REQUEST_LIST by the MAV to get the number of mission scripts.

func (*ScriptCount) GetDialect

func (m *ScriptCount) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*ScriptCount) GetID

func (m *ScriptCount) GetID() uint32

GetID gets the ID of the Message

func (*ScriptCount) GetMessageName

func (m *ScriptCount) GetMessageName() string

GetMessageName gets the name of the Message

func (*ScriptCount) GetVersion

func (m *ScriptCount) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*ScriptCount) HasExtensionFields

func (m *ScriptCount) HasExtensionFields() bool

HasExtensionFields returns true if the message definition contained extensions; false otherwise

func (*ScriptCount) Read

func (m *ScriptCount) Read(frame mavlink2.Frame) (err error)

Read sets the field values of the message from the raw message payload

func (*ScriptCount) String

func (m *ScriptCount) String() string

func (*ScriptCount) Write

func (m *ScriptCount) Write(version int) (output []byte, err error)

Write encodes the field values of the message to a byte array

type ScriptCurrent

type ScriptCurrent struct {
	/*Seq Active Sequence */
	Seq uint16
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

ScriptCurrent This message informs about the currently active SCRIPT.

func (*ScriptCurrent) GetDialect

func (m *ScriptCurrent) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*ScriptCurrent) GetID

func (m *ScriptCurrent) GetID() uint32

GetID gets the ID of the Message

func (*ScriptCurrent) GetMessageName

func (m *ScriptCurrent) GetMessageName() string

GetMessageName gets the name of the Message

func (*ScriptCurrent) GetVersion

func (m *ScriptCurrent) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*ScriptCurrent) HasExtensionFields

func (m *ScriptCurrent) HasExtensionFields() bool

HasExtensionFields returns true if the message definition contained extensions; false otherwise

func (*ScriptCurrent) Read

func (m *ScriptCurrent) Read(frame mavlink2.Frame) (err error)

Read sets the field values of the message from the raw message payload

func (*ScriptCurrent) String

func (m *ScriptCurrent) String() string

func (*ScriptCurrent) Write

func (m *ScriptCurrent) Write(version int) (output []byte, err error)

Write encodes the field values of the message to a byte array

type ScriptItem

type ScriptItem struct {
	/*Seq Sequence */
	Seq uint16
	/*TargetSystem System ID */
	TargetSystem uint8
	/*TargetComponent Component ID */
	TargetComponent uint8
	/*Name The name of the mission script, NULL terminated. */
	Name [50]byte
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

ScriptItem Message encoding a mission script item. This message is emitted upon a request for the next script item.

func (*ScriptItem) GetDialect

func (m *ScriptItem) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*ScriptItem) GetID

func (m *ScriptItem) GetID() uint32

GetID gets the ID of the Message

func (*ScriptItem) GetMessageName

func (m *ScriptItem) GetMessageName() string

GetMessageName gets the name of the Message

func (*ScriptItem) GetName

func (m *ScriptItem) GetName() string

GetName decodes the null-terminated string in the Name

func (*ScriptItem) GetVersion

func (m *ScriptItem) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*ScriptItem) HasExtensionFields

func (m *ScriptItem) HasExtensionFields() bool

HasExtensionFields returns true if the message definition contained extensions; false otherwise

func (*ScriptItem) Read

func (m *ScriptItem) Read(frame mavlink2.Frame) (err error)

Read sets the field values of the message from the raw message payload

func (*ScriptItem) SetName

func (m *ScriptItem) SetName(input string) (err error)

SetName encodes the input string to the Name array

func (*ScriptItem) String

func (m *ScriptItem) String() string

func (*ScriptItem) Write

func (m *ScriptItem) Write(version int) (output []byte, err error)

Write encodes the field values of the message to a byte array

type ScriptRequest

type ScriptRequest struct {
	/*Seq Sequence */
	Seq uint16
	/*TargetSystem System ID */
	TargetSystem uint8
	/*TargetComponent Component ID */
	TargetComponent uint8
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

ScriptRequest Request script item with the sequence number seq. The response of the system to this message should be a SCRIPT_ITEM message.

func (*ScriptRequest) GetDialect

func (m *ScriptRequest) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*ScriptRequest) GetID

func (m *ScriptRequest) GetID() uint32

GetID gets the ID of the Message

func (*ScriptRequest) GetMessageName

func (m *ScriptRequest) GetMessageName() string

GetMessageName gets the name of the Message

func (*ScriptRequest) GetVersion

func (m *ScriptRequest) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*ScriptRequest) HasExtensionFields

func (m *ScriptRequest) HasExtensionFields() bool

HasExtensionFields returns true if the message definition contained extensions; false otherwise

func (*ScriptRequest) Read

func (m *ScriptRequest) Read(frame mavlink2.Frame) (err error)

Read sets the field values of the message from the raw message payload

func (*ScriptRequest) String

func (m *ScriptRequest) String() string

func (*ScriptRequest) Write

func (m *ScriptRequest) Write(version int) (output []byte, err error)

Write encodes the field values of the message to a byte array

type ScriptRequestList

type ScriptRequestList struct {
	/*TargetSystem System ID */
	TargetSystem uint8
	/*TargetComponent Component ID */
	TargetComponent uint8
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

ScriptRequestList Request the overall list of mission items from the system/component.

func (*ScriptRequestList) GetDialect

func (m *ScriptRequestList) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*ScriptRequestList) GetID

func (m *ScriptRequestList) GetID() uint32

GetID gets the ID of the Message

func (*ScriptRequestList) GetMessageName

func (m *ScriptRequestList) GetMessageName() string

GetMessageName gets the name of the Message

func (*ScriptRequestList) GetVersion

func (m *ScriptRequestList) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*ScriptRequestList) HasExtensionFields

func (m *ScriptRequestList) HasExtensionFields() bool

HasExtensionFields returns true if the message definition contained extensions; false otherwise

func (*ScriptRequestList) Read

func (m *ScriptRequestList) Read(frame mavlink2.Frame) (err error)

Read sets the field values of the message from the raw message payload

func (*ScriptRequestList) String

func (m *ScriptRequestList) String() string

func (*ScriptRequestList) Write

func (m *ScriptRequestList) Write(version int) (output []byte, err error)

Write encodes the field values of the message to a byte array

Jump to

Keyboard shortcuts

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