apply_aircraft_setup
Apply a defined aircraft profile to the iNAV flight controller, save to EEPROM, and reboot. Rolls back all changes if any command fails; dry-run by default.
Instructions
Apply the declared aircraft profile to the FC, then save and reboot.
On iNAV this is an ATOMIC operation: the commands are applied in one CLI session, backed up first, then SAVED to EEPROM (the only way changes persist) and the FC reboots. We reconnect automatically and verify by read-back. If any command fails, ALL changes are rolled back (nothing is saved).
Gates:
A profile must be defined via define_aircraft().
Connected and not armed.
confirm=True required (dry-run by default).
Args: confirm: True to apply+save+reboot. Default False = dry-run (shows commands).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No |