Main Content

Current Attitude

Reads current attitude

Since R2025b

Add-On Required: This feature requires the UAV Toolbox Support Package for ArduPilot® Autopilots add-on.

Libraries:
UAV Toolbox Support Package for ArduPilot Autopilots / Controller Interface Blocks

Description

The Current Attitude block outputs the current attitude of the vehicle (roll, pitch, and yaw angles) as determined by ArduPilot's Attitude Heading Reference System (AHRS).

Limitations

This block is not supported in triggered subsystems.

Ports

Output

expand all

Current attitude of the vehicle (roll, pitch, and yaw angles) as determined by ArduPilot's Attitude Heading Reference System (AHRS).

Data Types: single

Parameters

expand all

Select the output format for the current attitude. This parameter allows you to choose between representing the current attitude as Euler angles or as a Quaternion.

  • Euler (ZYX): Select this option to output the current attitude in Euler angles format, using the ZYX convention, which represents the rotation in roll, pitch, and yaw angles.

  • Quaternion (WXYZ): Select this option to output the current attitude in quaternion format, which consists of a four-part hyper-complex number (W, X, Y, Z).

The time interval at which the block reads values from the ArduPilot Autopilot.

Version History

Introduced in R2025b