set_flight_mode
Assign a flight mode to an AUX channel range on iNAV flight controllers, with dry-run preview and confirmation for safe configuration.
Instructions
Assign a flight mode to an aux channel range (read-modify-write via CLI 'aux').
Finds an existing slot for this mode+channel (to modify) or the first free slot (to create), then writes the assignment. Dry-run by default.
Gates: connected, not armed, auto-backup before write. Requires confirm=True to apply.
Args: mode_name: Exact mode name as shown by list_flight_modes (e.g. "ANGLE", "NAV RTH"). aux_channel: 1-based AUX number (1 = AUX1 = RC channel 5), matching list_flight_modes. range_low: Range start in µs (900–2100). range_high: Range end in µs (must be > range_low, ≤ 2100). confirm: True to apply. Default False = dry-run (returns the command only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| mode_name | Yes | ||
| range_low | Yes | ||
| range_high | Yes | ||
| aux_channel | Yes |