icarous

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/*IcarousTrackBandTypeNone -  */
	IcarousTrackBandTypeNone = 0
	/*IcarousTrackBandTypeNear -  */
	IcarousTrackBandTypeNear = 1
	/*IcarousTrackBandTypeRecovery -  */
	IcarousTrackBandTypeRecovery = 2
	/*IcarousTrackBandTypesEnumEnd -  */
	IcarousTrackBandTypesEnumEnd = 3
)

ICAROUS_TRACK_BAND_TYPES -

View Source
const (
	/*IcarousFmsStateIDle -  */
	IcarousFmsStateIDle = 0
	/*IcarousFmsStateTakeoff -  */
	IcarousFmsStateTakeoff = 1
	/*IcarousFmsStateClimb -  */
	IcarousFmsStateClimb = 2
	/*IcarousFmsStateCruise -  */
	IcarousFmsStateCruise = 3
	/*IcarousFmsStateApproach -  */
	IcarousFmsStateApproach = 4
	/*IcarousFmsStateLand -  */
	IcarousFmsStateLand = 5
	/*IcarousFmsStateEnumEnd -  */
	IcarousFmsStateEnumEnd = 6
)

ICAROUS_FMS_STATE -

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 IcarousHeartbeat

type IcarousHeartbeat struct {
	/*Status See the FMS_STATE enum. */
	Status uint8
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

IcarousHeartbeat ICAROUS heartbeat

func (*IcarousHeartbeat) GetDialect

func (m *IcarousHeartbeat) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*IcarousHeartbeat) GetID

func (m *IcarousHeartbeat) GetID() uint32

GetID gets the ID of the Message

func (*IcarousHeartbeat) GetMessageName

func (m *IcarousHeartbeat) GetMessageName() string

GetMessageName gets the name of the Message

func (*IcarousHeartbeat) GetVersion

func (m *IcarousHeartbeat) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*IcarousHeartbeat) HasExtensionFields

func (m *IcarousHeartbeat) HasExtensionFields() bool

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

func (*IcarousHeartbeat) Read

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

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

func (*IcarousHeartbeat) String

func (m *IcarousHeartbeat) String() string

func (*IcarousHeartbeat) Write

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

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

type IcarousKinematicBands

type IcarousKinematicBands struct {
	/*Min1 min angle (degrees) */
	Min1 float32
	/*Max1 max angle (degrees) */
	Max1 float32
	/*Min2 min angle (degrees) */
	Min2 float32
	/*Max2 max angle (degrees) */
	Max2 float32
	/*Min3 min angle (degrees) */
	Min3 float32
	/*Max3 max angle (degrees) */
	Max3 float32
	/*Min4 min angle (degrees) */
	Min4 float32
	/*Max4 max angle (degrees) */
	Max4 float32
	/*Min5 min angle (degrees) */
	Min5 float32
	/*Max5 max angle (degrees) */
	Max5 float32
	/*Numbands Number of track bands */
	Numbands int8
	/*Type1 See the TRACK_BAND_TYPES enum. */
	Type1 uint8
	/*Type2 See the TRACK_BAND_TYPES enum. */
	Type2 uint8
	/*Type3 See the TRACK_BAND_TYPES enum. */
	Type3 uint8
	/*Type4 See the TRACK_BAND_TYPES enum. */
	Type4 uint8
	/*Type5 See the TRACK_BAND_TYPES enum. */
	Type5 uint8
	/*HasExtensionFieldValues indicates if this message has any extensions and  */
	HasExtensionFieldValues bool
}

IcarousKinematicBands Kinematic multi bands (track) output from Daidalus

func (*IcarousKinematicBands) GetDialect

func (m *IcarousKinematicBands) GetDialect() string

GetDialect gets the name of the dialect that defines the Message

func (*IcarousKinematicBands) GetID

func (m *IcarousKinematicBands) GetID() uint32

GetID gets the ID of the Message

func (*IcarousKinematicBands) GetMessageName

func (m *IcarousKinematicBands) GetMessageName() string

GetMessageName gets the name of the Message

func (*IcarousKinematicBands) GetVersion

func (m *IcarousKinematicBands) GetVersion() int

GetVersion gets the MAVLink version of the Message contents

func (*IcarousKinematicBands) HasExtensionFields

func (m *IcarousKinematicBands) HasExtensionFields() bool

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

func (*IcarousKinematicBands) Read

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

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

func (*IcarousKinematicBands) String

func (m *IcarousKinematicBands) String() string

func (*IcarousKinematicBands) Write

func (m *IcarousKinematicBands) 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