define_aircraft
Define aircraft hardware profile and generate an iNAV configuration plan with CLI commands for offline review before applying.
Instructions
Define the aircraft hardware profile and generate a configuration plan.
This is an OFFLINE planner — no FC connection required. Call it first to review the generated CLI commands, then call apply_aircraft_setup() to apply.
Args: name: A descriptive name for this aircraft (e.g., "My FPV Wing"). wing_type: One of: flying_wing, conventional, vtail, twin_tail, delta. esc_protocol: One of: DSHOT600, DSHOT300, DSHOT150, MULTISHOT, ONESHOT125, PWM. cells: LiPo battery cell count (e.g. 4 for 4S). fc_target: Optional FC board name (e.g. MATEKF405). Used for target hints. motor_kv: Optional motor KV rating (informational only). motor_poles: Motor pole count for RPM telemetry (default 14; verify with your motor). servo_count: Optional total servo count (informational). notes: Free text notes to store with the profile.
Returns a plan dict with: - profile: the stored profile - commands: the CLI commands to apply - summary: human-readable description - warnings: things to verify before/after applying
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cells | Yes | ||
| notes | No | ||
| motor_kv | No | ||
| fc_target | No | ||
| wing_type | Yes | ||
| motor_poles | No | ||
| servo_count | No | ||
| esc_protocol | Yes |