MAVLINKHUD

Overview

The DIR parameter group contains legacy or driver-specific settings for Analog Wind Vanes.

Note: In modern ArduPilot versions, these are often aliased to or superseded by the WNDVN (Wind Vane) parameter group. However, the DIR_ prefix persists for specific analog direction drivers (like the Modern Devices Wind Sensor).

Key Concepts

1. Analog Direction Sensing

Many simple wind vanes output a voltage (0-3.3V or 0-5V) proportional to the wind angle (0-360 degrees).

  • DIR_PIN: The ADC pin reading this voltage.
  • DIR_V_MIN / DIR_V_MAX: The voltage range corresponding to 0-360 degrees.

2. Offset (DIR_OFS)

Mechanical installation error correction. If the vane points North but the autopilot thinks it points East, use this offset to correct it.

Parameter Breakdown

  • DIR_PIN: ADC input pin.
  • DIR_FILT: Filter frequency (Hz) to smooth the noisy analog signal.
  • DIR_DZ: Deadzone (degrees) around North crossover (0/360 transition).

Integration Guide

  • See: WNDVN for main Wind Vane configuration. Use DIR_ parameters only if your selected WNDVN_TYPE requires them.

Developer Notes

  • Library: libraries/AP_WindVane

DIR_DELAY

s
Default 1.0
Range 0 5

Direction Change Delay (DIR_DELAY)

Description

This parameter is not found as a common wind vane parameter. It appears to be a miscategorized Torqeedo motor parameter.

DIR_DZ

deg
Default 0
Range 0 360

Wind vane deadzone (DIR_DZ)

Description

A small range of movement around the zero-point that is ignored by the software to prevent rapid, jittery direction changes when the wind is perfectly head-on.

DIR_FILT

Hz
Default 0.5
Range 0 10

apparent Wind vane direction filter (DIR_FILT)

Description

Low-pass filter frequency for smoothing the apparent wind direction data. Helps to remove noise caused by turbulence or physical sensor vibration.

DIR_OFS

deg
Default 0.0
Range 0 360

Wind vane headwind offset (DIR_OFS)

Description

Software calibration used to align the zero-point of the wind vane with the longitudinal axis (nose) of the aircraft.

DIR_PIN

Default 15

Wind vane analog voltage pin (DIR_PIN)

Description

Specifies the analog-to-digital converter (ADC) pin connected to the wind vane sensor.

DIR_V_MAX

V
Default 3.3
Range 0 5.0

Wind vane voltage maximum (DIR_V_MAX)

Description

Calibration point for the maximum voltage output of the analog wind vane sensor, corresponding to its highest range.

DIR_V_MIN

V
Default 0.0
Range 0 5.0

Wind vane voltage minimum (DIR_V_MIN)

Description

Calibration point for the minimum voltage output of the analog wind vane sensor, corresponding to its lowest range.