Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface for plugins to add HW and SW config pages #3433

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

EosBandi
Copy link
Collaborator

It makes possible for a plugin to add pages to the SETUP and the CONFIG pages.

Simply create a MyUserControl based form and then add it via
SoftwareConfig.AddPluginViewPage(typeof(pageclass), "pagename");
or
InitialSetup.AddPluginViewPage(typeof(pageclass, "pagename");

@EosBandi EosBandi removed the request for review from robertlong13 October 31, 2024 23:55
Copy link
Collaborator

@robertlong13 robertlong13 left a comment

Choose a reason for hiding this comment

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

This is great. Been wanting something like this for a while.

@robertlong13
Copy link
Collaborator

Do you have a minimal example plugin for this? I could whip one up if you don't.

@meee1 meee1 merged commit 070bfb9 into ArduPilot:master Nov 3, 2024
6 checks passed
@EosBandi
Copy link
Collaborator Author

EosBandi commented Nov 3, 2024

How we shall distribute these examples ? It won't work as a single file .cs since it needs a form...

@meee1
Copy link
Contributor

meee1 commented Nov 3, 2024

Check generator.cs. Definitely doable

@EosBandi
Copy link
Collaborator Author

EosBandi commented Nov 3, 2024

:) Ok put together a small example.

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.

3 participants