syscmds/param: For -a flag (show all), show also the unused parameters #20529
+22
−23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe problem solved by this pull request
PX4 by default was not showing the 'unused' parameters (e.g. Rover control parameters, when running quadcopter modules) that were not provoked / read / set by any module through the
param
systemcmd interface, unless we were showing the 'non-default' parameter values.This creates a confusion to the user who isn't aware of this
param
systemcmd behavior, to think that the parameter doesn't exist (as it can't be found with theparam show <NAME>
command, but in fact it is only not being shown because we have been specifying to only show the 'used' parameters.Describe your solution
-a
flag (which was not possible before)used
parameters, to inform the userparam show <PARAM_NAME>
command, with no flags (makes sense, as long as we have a warning to the user that we are only showing the subset)Test data / coverage
Before the change
After the change
Additional context
@potaito this should solve your mystery 😉