Documentation ¶
Index ¶
- type Dialect
- type ScriptCount
- func (m *ScriptCount) GetDialect() string
- func (m *ScriptCount) GetID() uint32
- func (m *ScriptCount) GetMessageName() string
- func (m *ScriptCount) GetVersion() int
- func (m *ScriptCount) HasExtensionFields() bool
- func (m *ScriptCount) Read(frame mavlink2.Frame) (err error)
- func (m *ScriptCount) String() string
- func (m *ScriptCount) Write(version int) (output []byte, err error)
- type ScriptCurrent
- func (m *ScriptCurrent) GetDialect() string
- func (m *ScriptCurrent) GetID() uint32
- func (m *ScriptCurrent) GetMessageName() string
- func (m *ScriptCurrent) GetVersion() int
- func (m *ScriptCurrent) HasExtensionFields() bool
- func (m *ScriptCurrent) Read(frame mavlink2.Frame) (err error)
- func (m *ScriptCurrent) String() string
- func (m *ScriptCurrent) Write(version int) (output []byte, err error)
- type ScriptItem
- func (m *ScriptItem) GetDialect() string
- func (m *ScriptItem) GetID() uint32
- func (m *ScriptItem) GetMessageName() string
- func (m *ScriptItem) GetName() string
- func (m *ScriptItem) GetVersion() int
- func (m *ScriptItem) HasExtensionFields() bool
- func (m *ScriptItem) Read(frame mavlink2.Frame) (err error)
- func (m *ScriptItem) SetName(input string) (err error)
- func (m *ScriptItem) String() string
- func (m *ScriptItem) Write(version int) (output []byte, err error)
- type ScriptRequest
- func (m *ScriptRequest) GetDialect() string
- func (m *ScriptRequest) GetID() uint32
- func (m *ScriptRequest) GetMessageName() string
- func (m *ScriptRequest) GetVersion() int
- func (m *ScriptRequest) HasExtensionFields() bool
- func (m *ScriptRequest) Read(frame mavlink2.Frame) (err error)
- func (m *ScriptRequest) String() string
- func (m *ScriptRequest) Write(version int) (output []byte, err error)
- type ScriptRequestList
- func (m *ScriptRequestList) GetDialect() string
- func (m *ScriptRequestList) GetID() uint32
- func (m *ScriptRequestList) GetMessageName() string
- func (m *ScriptRequestList) GetVersion() int
- func (m *ScriptRequestList) HasExtensionFields() bool
- func (m *ScriptRequestList) Read(frame mavlink2.Frame) (err error)
- func (m *ScriptRequestList) String() string
- func (m *ScriptRequestList) Write(version int) (output []byte, err error)
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 ¶
GetMessage extracts and parses the message contained in the Frame
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) 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
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
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) 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
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
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