MAVLINKHUD

Overview

The CIRCLE parameter group configures the behavior of the Circle flight mode. In this mode, the vehicle flies a perfect circle around a center point (typically the location where the mode was engaged) while keeping the nose pointed towards the center (ROI).

Key Concepts

1. Radius and Direction

  • CIRCLE_RADIUS: Defines the size of the circle (in centimeters or meters depending on firmware version, typically cm).
  • CIRCLE_RATE: Defines the angular speed of the orbit (deg/s).
  • CIRCLE_DIR: 0 = Clockwise, 1 = Counter-Clockwise. (Note: Often controlled by the sign of CIRCLE_RATE in newer versions).

2. Point of Interest

By default, the vehicle faces the center.

  • CIRCLE_OPTIONS: Can be used to change facing behavior (e.g., face direction of flight).

Parameter Breakdown

  • CIRCLE_RADIUS: Radius of the orbit.
  • CIRCLE_RATE: Angular velocity (deg/s). High rate + small radius = fast flight.

Integration Guide

  • Engagement: Fly to the desired center point, switch to CIRCLE. The vehicle will fly out to CIRCLE_RADIUS and begin orbiting.
  • Adjustment: In Copter, you can often adjust the radius dynamically using the Pitch/Roll stick while in Circle mode.

Developer Notes

  • Library: ArduCopter/mode_circle.cpp, ArduPlane/mode_circle.cpp.
  • Difference: Plane often uses LOITER_RADIUS for standard loiters, but CIRCLE mode is specific.

CIRCLE_DIR

Default 0
Range 0 1

Circle Direction (CIRCLE_DIR)

Description

Selects clockwise or counter-clockwise movement for Rover vehicles in Circle mode.

Tuning & Behavior

  • Default Value: 0 (Clockwise)
  • Values: 0:Clockwise, 1:Counter-Clockwise

CIRCLE_OPTIONS

Default 1

Circle options (CIRCLE_OPTIONS)

Description

Configuration bitmask for tailoring the vehicle's orientation and starting logic during Circle mode.

Tuning & Behavior

  • Default Value: 1
  • Bitmask:
    • Bit 0: Manual Control (Use pitch/roll to adjust radius/rate in flight)
    • Bit 1: Face Direction of Travel
    • Bit 2: Start at Center (Begin from the circle's center rather than flying to the perimeter)
    • Bit 3: ROI at Center (Keep gimbal pointed at the circle center)

CIRCLE_RADIUS

cm
Default 1000
Range 0 200000

Circle Radius (CIRCLE_RADIUS)

Description

Specifies the horizontal distance from the center point that the vehicle will maintain while in the "Circle" flight mode.

Tuning & Behavior

  • Default Value: 1000 cm (10 m)
  • Range: 0 to 200,000 cm
  • A value of 0 results in the vehicle performing a "Panorama" (rotating in place).

CIRCLE_RATE

deg/s
Default 20
Range -90 90

Circle rate (CIRCLE_RATE)

Description

Defines the angular speed and direction of the vehicle's movement around the circle.

Tuning & Behavior

  • Default Value: 20 $deg/s$
  • Range: -90 to 90 $deg/s$
  • Positive values result in clockwise rotation; negative values result in counter-clockwise rotation.

CIRCLE_SPEED

m/s
Default 0
Range 0 10

Circle Speed (CIRCLE_SPEED)

Description

Defines the linear velocity of the Rover while it is circling.

  • 0 uses the global waypoint speed (WP_SPEED).