set_pid_sliders
Set simplified PID and filter sliders on Betaflight flight controllers, automatically enabling tuning mode if disabled.
Instructions
Set Betaflight simplified filter and tuning slider values. Provide only the sliders you want to change; all others keep their current values. The FC recalculates actual PID gains immediately via MSP (equivalent to moving sliders in Configurator). Call cli_save afterwards to persist to EEPROM. If pids_mode is currently 0 (disabled), it is automatically enabled (set to 1) unless you specify otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d_gain | No | D-term / Damping gain (0.0–2.0). Controls the P:D balance. 1.0 = default. | |
| i_gain | No | I-term gain (0.0–2.0). Controls integral strength (drift/wobble correction). 1.0 = default. | |
| master | No | Master multiplier (0.0–2.0). Scales all PID gains proportionally. 1.0 = default. | |
| pi_gain | No | PI gain (0.0–2.0). Scales P and I together relative to D. 1.0 = default. | |
| pitch_pi | No | Pitch PI gain (0.0–2.0). Additional pitch-axis PI adjustment for roll/pitch latency matching. | |
| dmax_gain | No | D Max gain (0.0–2.0). Scales d_max values. 1.0 = default. | |
| pids_mode | No | Simplified tuning mode: 0 = off, 1 = roll+pitch only, 2 = roll+pitch+yaw. | |
| feedforward | No | Feedforward gain (0.0–2.0). Controls feedforward strength. 1.0 = default. | |
| gyro_filter | No | Enable simplified gyro filter slider. When true, the gyro_filter_multiplier controls gyro LPF cutoffs. | |
| dterm_filter | No | Enable simplified D-term filter slider. When true, the dterm_filter_multiplier controls D-term LPF cutoffs. | |
| roll_pitch_ratio | No | Roll/Pitch ratio (0.0–2.0). Adjusts pitch gains relative to roll. 1.0 = equal. | |
| gyro_filter_multiplier | No | Gyro filter multiplier (0.1–2.0). Scales gyro lowpass cutoff frequencies. 1.0 = default. Firmware minimum is 0.1 (raw 10). | |
| dterm_filter_multiplier | No | D-term filter multiplier (0.1–2.0). Scales D-term lowpass cutoff frequencies. 1.0 = default. Firmware minimum is 0.1 (raw 10). |