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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode_name": "<mode_name>",
"aux_channel": "<aux_channel>",
"range_low": "<range_low>",
"range_high": "<range_high>"
},
"name": "set_flight_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| mode_name | Yes | ||
| range_low | Yes | ||
| range_high | Yes | ||
| aux_channel | Yes |