主要内容

Current Course

R2026b

Read the current course in degrees from the ArduPilot Attitude Heading Reference System (AHRS)

Since R2026b

  • Current Course block

Libraries:
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 Course block reads the current course of the vehicle in degrees from the ArduPilot Attitude Heading Reference System (AHRS).

Use this block to access the estimated heading of the vehicle for navigation, guidance, and control workflows that depend on vehicle orientation. Typical applications include heading feedback for control loops, logging of estimated vehicle heading, and decision-making logic based on vehicle course.

This block supports both ArduCopter and ArduPlane vehicle types.

Ports

Output

expand all

Outputs the current estimated course of the vehicle in degrees as reported by the ArduPilot AHRS.

Data Types: single

Parameters

expand all

Specifies the sample time of the block. A value of -1 indicates that the block inherits the base rate and executes at the model’s fundamental sample time.

Version History

Introduced in R2026b