Documentation
¶
Overview ¶
Package msg contains the Message definition and utilities to encode and decode messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecEncoder ¶
type DecEncoder struct {
// contains filtered or unexported fields
}
DecEncoder is an object that allows to decode and encode a Message.
func NewDecEncoder ¶
func NewDecEncoder(msg Message) (*DecEncoder, error)
NewDecEncoder allocates a DecEncoder.
func (*DecEncoder) CRCExtra ¶
func (mde *DecEncoder) CRCExtra() byte
CRCExtra returns the message CRC extra.
type Message ¶
type Message interface {
GetID() uint32
}
Message is the interface that must be implemented by all Mavlink messages. Furthermore, any message must be labeled "MessageNameOfMessage".
type MessageRaw ¶
MessageRaw is a special struct that contains an unencoded message. It is used:
* as intermediate step in the encoding/decoding process
* when the parser receives an unknown message
func (*MessageRaw) GetID ¶
func (m *MessageRaw) GetID() uint32
GetID implements the Message interface.
Click to show internal directories.
Click to hide internal directories.