mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 06:50:35 +08:00
implemented reset with excludes
This commit is contained in:
committed by
Lorenz Meier
parent
4b1ddba817
commit
7c63be7450
@@ -189,6 +189,18 @@ __EXPORT int param_reset(param_t param);
|
||||
*/
|
||||
__EXPORT void param_reset_all(void);
|
||||
|
||||
|
||||
/**
|
||||
* Reset all parameters to their default values except for excluded parameters.
|
||||
*
|
||||
* This function also releases the storage used by struct parameters.
|
||||
*
|
||||
* @param excludes Array of param names to exclude from resetting. Use a wildcard
|
||||
* at the end to exclude parameters with a certain prefix.
|
||||
* @param num_excludes The number of excludes provided.
|
||||
*/
|
||||
__EXPORT void param_reset_excludes(const char* excludes[], int num_excludes);
|
||||
|
||||
/**
|
||||
* Export changed parameters to a file.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user