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

Supervision tools #2350

Merged
merged 14 commits into from Nov 29, 2018
Merged

Conversation

Fabien-B
Copy link
Contributor

@Fabien-B Fabien-B commented Nov 5, 2018

The purpose of this PR is to move the tools configuration (partially) out of the control_panel.xml.
The default tool configuration will be in individual files (one for each tool) in conf/tools/.
You can then override the default configuration in your control_panel.xml (eg. to change the default arguments or add custom tools). You can also add the blacklisted="true" attribute to the tools in your control_panel.xml to hide it in the paparazzi center.

This way, you will be able to see the new tools without changing your control_panel.xml, and you can make a custom configuration without affecting the default one.

sw/supervision/pc_control_panel.ml Outdated Show resolved Hide resolved
sw/supervision/pc_control_panel.ml Outdated Show resolved Hide resolved
sw/supervision/pc_control_panel.ml Outdated Show resolved Hide resolved
@gautierhattenberger
Copy link
Member

Maybe the conversion script should be applied to the control_panel example file (and remove the corresponding section in the file)

@gautierhattenberger
Copy link
Member

execution fails if directory conf/tools doesn't exist...

@Fabien-B
Copy link
Contributor Author

Fabien-B commented Nov 5, 2018

I propose I run the script myself with the latest control_panel_example.xml, commit all the tool files, then remove the tools from the control_panel_example.xml (I will leave a commented custom configuration example).
Current configuration of every body will not be changed, and new users will use the tools files.

And maybe the script should not be part of this pull request

@gautierhattenberger
Copy link
Member

@dewagter @podhrmic What do you think about this evolution ? The improvements are:

  • it is easier to add new tools that will be immediately visible for the users
  • you can hide tools that you don't use
  • you can set different default using the control_panel file
  • it is backward compatible so you you don't change your current control_panel you keep every like before

@gautierhattenberger
Copy link
Member

anyone for a comment of this modification ?

@kirkscheper
Copy link
Member

Looks good!

@podhrmic
Copy link
Member

Looks good to me:-)

@gautierhattenberger gautierhattenberger merged commit a1b8de2 into paparazzi:master Nov 29, 2018
shuoli-robotics pushed a commit to shuoli-robotics/paparazzi that referenced this pull request Jan 23, 2019
The improvements:
- it is easier to add new tools that will be immediately visible for the users
- you can hide tools that you don't use
- you can set different default using the control_panel file
- it is backward compatible so you you don't change your current control_panel you keep every like before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants