Skip to content

Add options/enum selector for parameters with enumerated values #76

@rubenCodeforges

Description

@rubenCodeforges

Description

Parameters that have enumerated/discrete values (e.g., SERVO_DSHOT_ESC with values 1-4, ARMING_CHECK, SERVO_DSHOT_RATE) currently display only the raw numeric value. Users cannot tell what each value represents without consulting external documentation.

Similar to how Bitmask parameters already have a dedicated "Bitmask" button and editor, parameters with enumerated options should have an "Options" dropdown or selector that shows the human-readable label for each value.

Examples

  • SERVO_DSHOT_ESC: value 1 should show as DShot150, 2 as DShot300, etc.
  • SERVO_DSHOT_RATE: value 4 - user cannot determine what rate this corresponds to
  • ARMING_CHECK: value 1 shows as raw number, but description says "add values: 1=all, 2=barometer, 4=compass, etc."

Expected Behavior

  • Parameters with enumerated values should display an options dropdown (similar to the existing Bitmask button)
  • The dropdown should show the human-readable label for each valid value
  • ArduPilot parameter metadata already includes Values fields that map numeric values to labels - these should be used to populate the selector

Related

Source

Feature request from Discord community feedback (nicojanssens, YupsUAV)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions