Mavlink Initialize Mavlink Receive navigation bar

Table of Contents

Mavlink Enumeration

Outputs the value of a Mavlink enumeration constant.

Library

QUARC Targets/Communications/Mavlink

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

qc_open_library('quarc_library/Communications/Mavlink')

Description

Mavlink Enumeration

The Mavlink Enumeration block outputs the value of a Mavlink enumeration constant. The data type of the constant inherits from the input it is driving by default, but can be overridden using the Signal data types tab.

Input Ports

This block has no input ports.

Output Ports

val

The value of the enumeration constant, with the selected output data type.

Data Type Support

The Mavlink Enumeration block supports signals of any of the standard Mavlink data types at its outputs.

Parameters and Dialog Box

Individual Panes

The parameters of the Mavlink Enumeration block are divided into three categories: Main, Parameters and Signal Data Types.

The Main tab contains the parameters that select which enumeration to use and the constant value based on that enumeration.

The Parameters tab is only present when the selected enumeration supports parameters. Parameters are generic fields associated with a Mavlink packet whose purpose is determined by one of the packet fields. For example, the COMMAND_LONG message has a command field and generic param<n> fields. The command field is set using a MAV_CMD enumeration constant. The Parameters tab provides information about each of the param<n> fields according to which MAV_CMD enumeration constant is selected.

The Parameters tab provides information about each of the parameters. It does not affect block functionality.

The Signal Attributes tab affects the output data type used.

Use the links below to jump to the documentation for each tab:

Main Pane

The Main pane of the dialog appears as follows:

Mavlink Enumeration Main tab

Enumeration

Selects which Mavlink enumeration to use.

Value

The constant value from the selected enumeration. The numeric value of this enumeration constant value will be output from the block.

Parameters Pane

The Parameters pane of the dialog appears as follows:

Mavlink Enumeration Parameters tab

Select parameter for details

Choosing a parameter from the list updates the description area with information about the selected parameter. This option does not affect the functionality of the block and is only provided for documentation purposes.

Signal Attributes Pane

The Signal Attributes pane of the dialog appears as follows:

Mavlink Enumeration Signal Attributes tab

Output data type

Selects the data type of the output. By default, the data type is determined by the block to which this output is connected.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

Yes

Yes

Last fully supported in QUARC 2018.

Rapid Simulation (RSIM) Target

Yes

Yes

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

See Also

 

navigation bar