MAVLINKHUD

Overview

The SW parameter group (specifically SW_METHOD or OSD_SW_METHOD) defines how the pilot toggles through different OSD Screens.

Key Concepts

1. Screen Selection

ArduPilot supports multiple OSD layouts. This parameter selects the trigger for switching between them.

  • SW_METHOD:
    • 0: Fixed (Only Screen 1).
    • 1: Use an RC Channel (defined in OSD_CHAN).
    • 2: Toggle on a switch change.
    • 3: Automatic (Switch based on flight stage: Arming/Failsafe/Mission).

Developer Notes

  • Library: libraries/AP_OSD.

SW_METHOD

Default 0
Range 0 2

SW_METHOD: Screen switch method

Description

This sets the method used to switch different OSD screens.

Values

Value Meaning
0 Toggle (Click to cycle through screens)
1 PWM Range (Switch selects screen based on PWM band)
2 Auto Switch (Switch screens automatically at a set interval)
  • Default: 0

Description

This parameter (OSD_SW_METHOD) configures how the pilot changes between the multiple OSD layouts (Screen 1, Screen 2, etc.) using the RC channel assigned to OSD_SW_CHAN.

  • Toggle (0): Each time you flip the switch High and back to Low, the OSD cycles to the next screen. Good for momentary switches.
  • PWM Range (1): The position of a 3-position or rotary switch directly selects the screen. Low = Screen 1, Mid = Screen 2, High = Screen 3. Best for 3-pos switches.
  • Auto Switch (2): The screens cycle automatically every few seconds. Not commonly used.