Table of Contents
Mavlink Enumeration
Outputs the value of a Mavlink enumeration constant.
Library
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
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:
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:
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:
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 |
---|---|---|---|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
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 |
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.