restore_config
Restore a flight controller's configuration by replaying a backup file's CLI commands, then save and reboot. If any command fails, changes are rolled back automatically.
Instructions
Restore FC config by replaying a backup file's CLI commands, then save+reboot.
On iNAV this is atomic: a pre-restore backup is taken, the file's commands are replayed in one CLI session, then SAVED to EEPROM and the FC reboots (we reconnect). If any line errors, all changes are rolled back.
Args: path: Path to a backup file (as returned by backup_config). confirm: Must be True to apply. Dry-run by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| confirm | No |