Skip to content

auto enable joystick setting#3665

Open
angebrajuka wants to merge 2 commits intoArduPilot:masterfrom
angebrajuka:feature/joystick-auto-enable
Open

auto enable joystick setting#3665
angebrajuka wants to merge 2 commits intoArduPilot:masterfrom
angebrajuka:feature/joystick-auto-enable

Conversation

@angebrajuka
Copy link
Copy Markdown

added checkbox in planner configs to auto enable joysticks when connected joystick loop checks the auto enable setting and enables the joystick if available joystick setup enable/disable button is greyed out when auto enable is turned on

added checkbox in planner configs to auto enable joysticks when connected
joystick loop checks the auto enable setting and enables the joystick if available
joystick setup enable/disable button is greyed out when auto enable is turned on
@meee1 meee1 requested a review from Copilot March 16, 2026 11:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an “Auto Enable Joysticks” planner setting that automatically initializes/enables a joystick when detected, and disables manual enable/disable in the joystick setup UI when the setting is on.

Changes:

  • Add auto-enable logic to the joystick send loop to create/enable the joystick when configured and available.
  • Add a new planner configuration checkbox to persist the auto-enable setting.
  • Disable the joystick setup enable button when auto-enable is enabled.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
MainV2.cs Adds auto-enable polling/initialization and auto-enable state enforcement in the joystick loop.
Joystick/JoystickSetup.cs Disables the manual enable button based on the new setting.
GCSViews/ConfigurationView/ConfigPlanner.resx Adds the new checkbox control resources and updates Z-order entries.
GCSViews/ConfigurationView/ConfigPlanner.cs Loads/saves the new “Auto Enable Joysticks” checkbox to Settings.
Files not reviewed (1)
  • GCSViews/ConfigurationView/ConfigPlanner.Designer.cs: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread MainV2.cs Outdated
Comment thread MainV2.cs
Comment thread Joystick/JoystickSetup.cs
this.Width = ax.Right;
}

BUT_enable.Enabled = !Settings.Instance.GetBoolean("CHK_Joystick_AutoEnable");
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants