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

parameter reset to defaults #106

Merged

Conversation

BluemarkInnovations
Copy link
Contributor

This PR adds the parameter TO_DEFAULTS. If set to 1, it will reset all values to their default value. And will also set the TO_DEFAULTS parameter to 0 again.

This is useful for ArduRemoteID devices that don't have a droneCAN interface. These devices don't have the option to configure string parameters. Of course, a user could flash the firmware via a serial interface; this parameter is a better way without reflashing firmware.

@BluemarkInnovations BluemarkInnovations changed the title Parameter reset to defaults parameter reset to defaults Mar 15, 2023
RemoteIDModule/parameters.cpp Outdated Show resolved Hide resolved
@BluemarkInnovations BluemarkInnovations force-pushed the parameter_reset_to_defaults branch from 35a5fe2 to f7b06be Compare April 3, 2023 15:58
@BluemarkInnovations
Copy link
Contributor Author

Updated PR where I implemented the nvs_flash_erase option.

@tridge tridge merged commit 665c772 into ArduPilot:master Aug 12, 2023
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