set_battery_profile
Modifies a Betaflight battery profile by index, changing only supplied fields, enforcing min<=warning<=full<=max; refused if FC armed—call save_config after.
Instructions
Modifie un profil batterie par index (Betaflight 2026.6+), actif ou non. Seuls les champs fournis changent ; ordre min <= warning <= full <= max obligatoire. Refusé si FC armé. Appeler save_config ensuite.
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": {
"index": "<index>",
"settings": "<settings>"
},
"name": "set_battery_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index du profil batterie | |
| settings | Yes | Réglages à modifier, noms CLI Betaflight 2025.12+ → valeur (entier, ou libellé pour les énumérations). Champs : vbat_min_cell_voltage (plage firmware [100–500]); vbat_max_cell_voltage (plage firmware [100–500]); vbat_warning_cell_voltage (plage firmware [100–500]); vbat_full_cell_voltage (plage firmware [100–500]); bat_capacity (plage firmware [0–20000]); force_battery_cell_count (plage firmware [0–24]); cbat_alert_percent (plage firmware [0–100]). Tensions en centièmes de volt ; ordre min <= warning <= full <= max. |