Current Attitude
R2026bLibraries:
UAV Toolbox Support Package for ArduPilot Autopilots /
Controller Interface Blocks /
Common Blocks
Description
Add-On Required: This feature requires the UAV Toolbox Support Package for ArduPilot Autopilots add-on.
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).
This block supports both ArduCopter and ArduPlane vehicle types.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ardupilotCommonlib/Current Attitude"
Example: add_block("ardupilotCommonlib/Current Attitude","myModel/myBlock",MakeNameUnique="on")
