> **Sokil documentation pack**
> Language: English
> Station software: 20261126_usb_cameras
> UI build: c6b2dc620
> Generated: 2026-11-26
> Generated by the Sokil ground station UI from the documentation it ships. Download it again after every software update - the pack describes the version it was generated from.

<a id="betaflight-tuning"></a>

# Tuning a Betaflight flight controller and its Blackbox logs

**Summary:** Tune a Betaflight flight controller over USB from FC setup - PID gains, the simplified sliders, rates and profiles, the gyro and D-term filters with a preview of what they do, how to set the dynamic notch and the RPM filter - then choose what Blackbox logs, download the logs from the flash chip, erase it, or open the storage as a USB drive - and read a flight's log on the page for its step response, its noise and what to change.

**Audience:** field integrators

Open in the UI: http://10.1.1.30/help/guides/betaflight-tuning

The **Flight controller setup** page tunes a Betaflight flight controller over USB, without Betaflight
Configurator: connect it as for [flashing Betaflight](fc-firmware.md#fc-firmware--flash-betaflight-from-fc-setup),
and once the page has read it the **Tuning** tab appears beside **Summary**, with the sub-tabs **PID**, **Rates**, **Filters**,
**Blackbox** and **From a log**; below, **Tuning > Blackbox** names one. The tabs
are for **Betaflight 2026.6**; on an older or newer firmware version the page says so and
edits nothing. The other tabs - ports, receiver, modes, failsafe, power, motors and the rest - are in
[Setting up a Betaflight flight controller](betaflight-setup.md#betaflight-setup).

Settings edits are staged and marked; **Write to FC** counts them and says when writing will also
restart the flight controller. Profile switching and copying are separate actions that take effect
immediately, as described below; Blackbox download, erase and USB-drive actions also run separately.
Disarm before writing settings or running these actions.

<a id="betaflight-tuning--the-tuning-tab"></a>

### The Tuning tab

The views **PID**, **Rates** and **Filters** are described here; **Blackbox** and **From a log** follow.

<a id="betaflight-tuning--profiles"></a>

#### Profiles

Betaflight keeps several PID profiles and several rate profiles and flies one of each. Every value on
the **PID** and **Filters** views belongs to the active **PID profile**, every value on **Rates** to
the active **Rate profile**. Picking another profile makes the flight controller fly it at once and
saves that choice; with changes staged it first asks, lists them as **Write to FC** does, and writes
them to the profile being left. **Copy to...** overwrites another profile with this one, after asking.

<a id="betaflight-tuning--pid"></a>

#### PID

- **Simplified tuning** - a few sliders around 1.00 that the firmware turns into gains: **Damping**,
  **Tracking**, **Stick response**, **Drift and wobble**, **Dynamic damping**, the two pitch sliders
  and the **Master multiplier**. Moving one asks the flight controller which gains it gives and shows
  them in the table at once. **The sliders drive** chooses roll and pitch, all three axes, or nothing
  - with nothing, you type the gains yourself.
- **PID gains** - the table the sliders fill. A gain typed by hand while the sliders are on is
  flagged: the next slider move replaces it. Dynamic D raises D from a base value in fast moves, and
  the two firmware generations name the ends differently: on 2025.12 and later **D** is the base and
  **D max** the maximum; on 4.3-4.5 **Base D** is the base and **D** the maximum. The
  **Base D** column shows only when the flight controller reports it.
- **Stick response and stability** and **Throttle, motors and battery** - feedforward, I-term
  behavior, self-leveling, TPA, the motor limit and idle.

Start with the sliders. Raise **Damping** until fast moves stop bouncing back, stop when the motors
come down warm or the log shows D-term noise; then raise **Tracking** until the aircraft holds its
attitude through throttle changes. Change one slider at a time and fly between changes.

<a id="betaflight-tuning--rates"></a>

#### Rates

The **Rate profile**, the **Rates** table with its curve - how fast the aircraft turns across the
stick - and the **Throttle curve and limit**. Under the curve the **Stick preview** has a slider per
axis: move them and a 3D model turns at the rate the staged numbers give that stick position, so a
rate can be judged by watching it. Nothing is sent to the flight controller.

<a id="betaflight-tuning--filters"></a>

#### Filters

Filters cut motor and frame noise out of the gyro signal before the PID controller sees it. Every
filter also delays the signal, and delay is what makes a tune soft or makes it oscillate, so the aim
is **the least filtering the motors tolerate**.

- **Simplified filter tuning** - two sliders, **Gyro filters** and **D-term filters**, that move the
  lowpass cutoffs together. To the right is less filtering and less delay. On a clean build with a
  working RPM filter, move both right a step at a time, and come back a step when the motors run
  warmer or sound rough.
- **Gyro filters** and **D-term filters** - the cutoffs themselves. A cutoff typed by hand turns its
  slider off.
- **Dynamic notch** and **RPM filter** - below.
- **Filter preview** - what the staged filters do: how much of each frequency gets through, and the
  delay they add at low frequency, staged against what the flight controller flies now. A staged
  change moves the picture at once, so you see the cost of a filter before you write it.

Gyro, dynamic notch and RPM filter changes act after the flight controller restarts; the D-term
filters act as soon as they are written. The button tells you which it will be.

<a id="betaflight-tuning--the-rpm-filter"></a>

##### The RPM filter

The RPM filter puts a narrow notch on each motor's own speed and its harmonics, following the motor
through the whole throttle range. It removes the strongest noise there is with very little delay,
and it is what lets you open up every other filter.

It needs the ESCs to report motor speed: **bidirectional DShot** must be on and the motor pole count
must match the motors (14 on most 5-inch motors, 12 on many smaller ones). The page says so in the
preview when bidirectional DShot is off - then the RPM filter does nothing, whatever its rows say.

- **Harmonics** - how many multiples of the motor speed get a notch. Three is the default. Two-blade
  props put most noise on the first and second, three-blade props on the first and third.
- **Harmonic weights** - how deep each harmonic's notch is, 0 to 100. Set a harmonic your props do
  not excite to 0 and its notches cost no delay at all.
- **Sharpness (Q)** - higher is a narrower notch with less delay. Raise it on a build with tight
  motor tracking; lower it if a motor noise line still shows beside the notch in a log.
- **Lowest frequency** and **Fade range** - under the lowest frequency the notches do not follow the
  motors, and they fade out over the fade range above it, so they do not eat into the band the
  aircraft flies in. Large, slow props idle lower: lower the frequency for 7-inch and larger.

In the **Filter preview**, the **Motor speed** control moves the motors from idle to full speed: the
notches of each harmonic are drawn where they sit at that speed, as wide and as deep as the staged
settings make them, and the delay row counts them. The preview assumes four motors at one speed.
Slide through the range once and watch the delay near the lowest frequency - that is where the RPM
filter costs the most.

<a id="betaflight-tuning--the-dynamic-notch"></a>

##### The dynamic notch

The dynamic notch finds the strongest noise peaks in flight and puts a notch on each. It catches what
does not follow the motors: frame resonance, a loose arm, a camera mount.

- **Notches** - how many peaks it follows. With a working RPM filter one or two are enough, and each
  one you remove takes delay away. Without the RPM filter keep the default or more, because the
  dynamic notch then has the motor noise to deal with as well.
- **Sharpness (Q)** - higher is narrower with less delay; raise it once the RPM filter does the
  heavy work.
- **Lowest frequency** and **Highest frequency** - the range it searches. Keep the lowest above the
  band the aircraft flies in (the default suits most builds), and bring the range down for large
  props, whose resonances sit lower.

The preview shades the range and draws the notches where they start, with their real width; in
flight each one moves to a noise peak inside the shaded range.

A sound order: get bidirectional DShot and the RPM filter working first, fly, then reduce the dynamic
notch, then move the filter sliders right. Check the motors after every flight - warm is the limit,
hot is too far.

<a id="betaflight-tuning--from-a-log"></a>

#### From a log

**From a log** reads the Blackbox log of one flight and says what it shows about the tune. Download
the flight on **Tuning > Blackbox** and press **Use the downloaded log**, or press **Open a log file**
and choose a `.bbl` file on this computer. A flight controller starts a new log at every arm, so one
file may hold several flights: the longest opens first, and **Flight in the file** picks another. The
log is read in this browser and goes nowhere else.

A log worth tuning from has a minute or more in the air, sharp stick moves on roll, pitch and yaw,
and the throttle taken from low to high. Before the flight press **Prepare a tuning flight** on
**Tuning > Blackbox** so the log records what is read here, and keep bidirectional DShot on so the
log holds the motors' speeds. What a log lacks is said on the card
that needed it, with the setting that brings it back - nothing is drawn from a guess.

Once a flight is read, **What to change** comes first and the rest sits under it in sections -
**Overview**, **Filters**, **Response** and **Motors and vibration**. Each section is a closed row with one line of what it
found: press it to open, or press **Show the evidence** on a finding. It is the same tool as **Tools > FC Tuning**, which reads a
log with no flight controller connected ([FC Tuning](fc-tuning.md#fc-tuning)).

- **Flight log** (Overview) - the firmware, the time in the air, the gyro, PID loop and logging rates.
  Each motor's output is on the **Motors** card. Damaged stretches of a log are left out and counted.
- **What to change** - the findings of this flight, each in a sentence with the numbers it read and
  the change it suggests. **Show the evidence** opens the card a finding is read from. **Stage** puts that change beside your other staged edits; it reaches the
  flight controller only with **Write to FC**. A step response that overshoots, settles low or
  answers slower than the other axis suggests no P, I or D change: one log cannot tell which part
  of the controller, the filters or the motors caused it. The finding says what to log and fly to
  tell them apart, and which recordings this log lacked. An analysis that fails is listed as failed
  rather than left out. After a change to D or D max, check the motors' temperature on the first
  short flight. Each suggestion was computed from the settings this flight flew: when the flight controller now
  holds another value for one of them, or a staged change moves one, it is not offered and says which
  setting and both values. **Write to FC** lists first any added suggestion that a later staged change
  made out of date; the Write itself is still yours to make.
- **Step response** (Response) - how fast and how cleanly each axis follows the stick, with the band a good
  response stays in. Open a second log there to see another flight behind this one and the tuning
  settings that differ between the two.
- **This flight against another** (Overview) - open a second flight of the same aircraft and read,
  measure by measure, whether this flight is better or worse: response delay and overshoot per
  axis, noise after the filters, time at full output, the motor furthest from the rest and the
  shaking after a throttle cut, next to the settings that differ between the two. A difference
  smaller than two flights of an unchanged aircraft show on their own reads as the same. Change
  one thing at a time: a setting that differs is not proof that it caused the difference.
- **Which part of the controller does the work** (Response) - for each axis, how busy the P, I, D and
  feedforward parts were in steady flight and in fast stick moves, how much of D's work is
  high-frequency (vibration, not damping) and how long the I part sat at its limit. It describes the
  flight and changes nothing.
- **Stick feel: feedforward** (Response) - how many milliseconds after the stick each axis follows,
  and whether feedforward twitches in calm flight: the receiver's small steps reaching the motors.
  When it does, **What to change** offers a higher feedforward jitter reduction.
- **Low throttle: shaking after a throttle cut** (Response) - how far each axis is from the commanded
  rate right after a throttle cut against quiet flight, the motors' idle speed against its target,
  and TPA as flown. It needs at least three throttle cuts: climb, chop the throttle and catch the
  aircraft, a few times. Each cut it found has a link that opens the Flight graph on that moment.
  Shaking can also be wind or a loose part - check the aircraft before the tune. When the shaking is
  clear and D's work after the cuts is not mostly high-frequency noise, **What to change** offers raising the maximum of Dynamic D on roll and
  pitch by 10 % - **D max** on 2025.12 and later, **D** on 4.3-4.5, never the base - with the sliders
  switched off in the same change. A log that does not record the Dynamic D settings, or a firmware
  version the page does not know, gets a line saying so instead.
- **Motors** (Motors and vibration) - the frame from above with each motor colored by how far its
  mean output sits from the rest, the exact figures beside it, and three comparisons in words: front
  against rear and left against right (where the weight sits), and one diagonal pair against the
  other (a twisted arm or a motor that does not sit flat). A log does not record the motor layout,
  so a log file is drawn in Betaflight's default motor order and says so; with a flight controller
  connected the drawing follows its own mixer and turn directions.
- **Noise** (Filters) - the gyro's noise by frequency before and after the filters, the D term's, and
  **Noise by throttle**: a streak that climbs with the throttle is the motors (the RPM filter and the
  dynamic notch are for it), one that stays at one frequency is a resonance of the frame or a mount
  (a stiffer mount first, a filter last).
  **Signals by throttle** also shows the setpoint, PID error, D term and each motor output.
  Choose an axis or motor and **Full band** or **Up to 100 Hz**. Read the PSD unit above the map:
  rate, D output and motor fraction have different units and cannot be compared by color alone.
  Empty rows mean no usable recording; a longer recording does not raise the PSD. Tap a cell for its value.
  Use **Compare with another log** on Noise to open B. The chosen signal has an overlaid spectrum
  (B dashed) and two maps sharing frequency limits and color scales. **Close comparison** also clears
  the step comparison. Compare similar maneuvers, throttle coverage and motor order.
  The [tuning journal](http://10.1.1.30/tools/fc-tuning?view=journal) comparison refuses or flags flights that differ in aircraft,
  firmware, load or regime.
  Choose **Blue** or **Grayscale** for the map color ramp. **Automatic levels** derives shared
  A/B limits from the data; **Manual levels** lets you set the lower and upper dB bounds for both maps.
  Values outside those bounds use the end colors; empty rows remain empty.
  **Low-commanded-rate PID error** plots mean absolute tracking error by throttle. Choose a
  20, 50 or 100 deg/s command limit. Each axis uses its own setpoint gate; other axes may be moving.
  The table gives error, usable time and sample count. Empty cells have no eligible data. Wind and
  vibration can also cause error, so compare similar flights before choosing gains.
  The comparison log also adds A/B tracking error bars for a selected axis. Both flights use the same commanded-rate limit and error scale. The table keeps time and sample coverage separate for A and B; a blank bin has no usable coverage, rather than zero error. Compare similar maneuvers and conditions.
  **Band activity by throttle** shows RMS PID error and individual motor output in 30-90 Hz,
  alongside commanded AC motion up to 20 Hz. Select a signal to see its throttle bins, whole-flight RMS
  and overlapping FFT-window count. Motor RMS is percent of output range, not RPM or current.
  A steady command is removed by the spectrum's window-mean removal; use similar maneuvers for comparison.
  These bands alone cannot identify propwash or select gains.
  **Measured path delay** estimates correlation lag in 20-100 Hz from synchronized raw/filtered gyro
  samples and, for D, from the negative filtered-gyro derivative to the recorded D output. Read the
  sample resolution, window spread, correlation and accepted-window coverage alongside the delay.
  Periodic, weak, negative-lag or inconsistent evidence is refused. This is band-dependent apparent lag,
  not phase margin or phase delay at one frequency. Variable D gain and recording timing can affect it.
  Compare a filter model only using identical bands, paths, timestamps and delay definitions.
  **Recorded and modeled delay** below compares the same gyro and whole D paths with a diagnostic
  model. Every modeled number and difference is labeled **model not yet proven on recorded data**.
  The whole D path starts at the negative derivative of unfiltered gyro; the measurement above starts
  at the derivative of filtered gyro. This comparison neither approves nor rejects filters and stages
  no changes. It supports Betaflight 2025.12.2 static filter chains with equal gyro/PID rates and every
  sensor sample recorded. Other recordings show why a comparison is unavailable.

- **Staged filters on this flight's noise** (Filters) - what the filters now on the **Filters** view would have
  left of this flight's noise, next to what the flown filters left, with the RPM filter and the
  dynamic notch drawn where this flight put them. Change a filter on **Filters** and come back to see
  the predicted line move. It is a prediction: fly the change and open the new log to measure it.
- **Filters, one by one** (Filters) - every filter in the order the gyro signal passes it: what it is
  for, whether it is on, what it costs in delay, and its settings as rows to edit. A value typed
  there is priced at once, moves the predicted line on the card above, and goes to **Write to FC**
  (in **Tools > FC Tuning**: into the file). Under the list the page tries each set of lowpass
  filters 10 % tighter and 10 % looser on this flight's noise and says whether either is worth it.

**Tuning goal** on the **What to change** card sets how strictly the flight is judged, from **Range**
to **Locked-in**: how much overshoot is allowed, and how much extra noise a shorter filter delay may
cost. It is the same goal an ArduPilot aircraft has, but only that part of it applies to Betaflight.

The filter suggestions follow the order above: turn the RPM filter on once the ESCs report the
motors' speeds, then reduce the dynamic notch when this flight shows that costs little, and turn the
dynamic notch on when nothing else follows the motors' noise. A motor that works harder than the
rest, motors at the top of their range and a resonance are named too - those are fixed with a
wrench, not a setting.

<a id="betaflight-tuning--tuning-blackbox"></a>

### Tuning > Blackbox

Blackbox is the flight controller's own flight log - gyro, setpoints, PID terms, motors - and what a
tune is read from.

<a id="betaflight-tuning--tuning-flight-log"></a>

#### Tuning flight log

The **Tuning flight log** card sets the log up for a tuning flight in one press. It lists what this
flight controller logs differently from what **From a log** reads, each as the value now and the
value it becomes:

- **Logging rate** - raised to about 2 kHz when it is slower, so the log shows motor noise. A faster
  rate is left as you set it.
- The groups of fields the analysis reads - gyro, gyro before filtering, setpoint, PID terms, RC
  commands, motors, motor RPM, accelerometer and debug - each set to **Logged**.
- **Debug mode** - the one that records where the dynamic notch sits in flight. On a Betaflight
  older than 4.5 it is the one that records the gyro before filtering instead: that firmware has no
  field group for it, and one flight cannot record both.

**Prepare a tuning flight** stages all of it beside your other edits; **Write to FC** applies it and
restarts the flight controller. **Undo** takes the staged changes back. When nothing needs changing
the card says the flight controller already logs everything.

The card never chooses where the log goes or changes the motor protocol. It says so in words when
**Log to** is NONE, when bidirectional DShot is off (the log then has no motor speed), or when the
firmware cannot log something.

<a id="betaflight-tuning--what-is-logged"></a>

#### What is logged

- **Log to** - the flash chip on the board, a memory card, or a serial logger; NONE turns logging off.
- **Log when** - NORMAL logs while armed; ALWAYS logs from power-up, which fills the storage on the
  bench too.
- **Logging rate** - a fraction of the PID loop rate. Half is enough for tuning on most builds; the
  full rate fills the chip twice as fast.
- The fields to log, **Debug mode** and **High resolution** - **Prepare a tuning flight** above sets
  the ones a tuning flight needs; leave the rest as they are.

Every setting on this card acts after the flight controller restarts.

<a id="betaflight-tuning--download-erase-usb-drive"></a>

#### Download, erase, USB drive

The **Flash chip** card shows how full the chip is (**Chip storage**). A full chip stops logging, so
empty it before a tuning flight. A running download or erase is a block of its own with a label above
its bar - **Downloading 0.2 of 1.9 MB**, **Erasing the chip**.

- **Download logs** reads the whole chip into one `.bbl` file, with a progress bar - about half a
  minute for a few megabytes. If the cable is pulled, plug it in again: the download goes on from
  where it stopped once the page has checked that the chip still holds the same log, and starts over
  if it does not. A finished download is saved by itself to your browser's downloads (one click);
  **Save again** opens the save dialog for the same file.
- **Erase chip** asks first, deletes every log on the chip and takes up to a couple of minutes. A
  file you downloaded but did not save stays on the page - the question names it.
- **Open as USB drive** restarts the flight controller as a drive holding the log files - the way to
  copy logs from a **Memory card**, and an alternative for the chip. To come back, eject the drive,
  then unplug the flight controller and plug it in again. Not every firmware build can do this; the
  page says so.

Erase and the USB drive act on the storage chosen in **Log to** as the flight controller holds it
now, so their buttons are offered only for that storage. Nothing on this tab runs while the flight
controller is armed.

<a id="betaflight-tuning--related-guides"></a>

### Related guides

- [Sokil's Betaflight and ArduPilot builds](fc-firmware.md#fc-firmware) - which firmware, and flashing
  it from this page.
- [Flight controller connection](flight-controller.md#flight-controller) - the ports and the
  receiver.
- [Tuning with Sokil - the tuning flight](tuning-flight.md#tuning-flight) - the ArduPilot tuning loop.
