# Betaflight autotune from a chirp flight

Chirp autotune reads a Betaflight blackbox log recorded with debug_mode CHIRP, measures each axis's frequency response, and suggests simplified-tuning slider values. FlySpark runs it in the browser or the Android and iPhone apps; with a disarmed quad connected, the suggestion can be applied and saved.

HTML: https://app.flyspark.in/pid-autotune/
Updated: 2026-11-14

Chirp autotune sits next to the [Betaflight configurator](https://app.flyspark.in/betaflight-configurator/) and the [ESC configurator](https://app.flyspark.in/esc-configurator/). Tuning PIDs by feel takes many packs. A chirp test makes the flight controller sweep a sine wave through each axis while it logs, and the log then shows how the quad responds at every frequency. FlySpark reads that CHIRP log and works out a Betaflight autotune suggestion in simplified slider form.

It runs in your browser or in the FlySpark app on Android and iPhone. Reading a log needs no flight controller. With one connected, the suggestion can be applied and saved in one step.

## Key facts

- Needs a Betaflight log recorded with debug_mode = CHIRP; the sweep is found from the CHIRP flight-mode bit in the log.
- Frequency response is estimated with Welch's method, and only frequencies with coherence of 0.5 or more are used.
- Three tuning targets: Aggressive (50° phase margin), Normal (60°) and Conservative (72.5°).
- Each pass changes gains by between 0.5× and 2×.
- Output is Betaflight simplified-tuning slider values, shown next to the current values from the log.
- Reads .BBL, .BFL and .TXT logs; a sample chirp flight works with no log.
- Betaflight 2026.6 added an experimental Autotune tab to the Betaflight App that uses the same chirp-log approach.

## FAQ

### What is Betaflight autotune?

Betaflight autotune here is the chirp log. Betaflight 2025.12 records a frequency sweep. FlySpark suggests slider values from that log.

### What is chirp autotune?

A method that measures the quad's response with a frequency sweep, then picks gains for a target phase margin instead of tuning by feel.

### Do I need a flight controller connected?

Not to read a log. Connect only when you want to apply the suggested gains.

### How do I record a chirp log?

Set debug_mode = CHIRP, give CHIRP mode a switch, turn on blackbox, then hover and flip CHIRP on for each axis.

### Which tuning target should I pick?

Normal for most quads. Aggressive for a clean, stiff racer. Conservative for a heavy, soft or noisy build.

### Will it change my individual PIDs?

It suggests simplified sliders. If your quad uses hand-set PIDs, applying turns the sliders on and replaces the current PID values, after asking.

### Why does it say the gain was clamped?

One pass changes gain by at most half or double. Apply, fly another chirp, and repeat until no clamp note appears.

### Can I use it on my phone?

Yes. The FlySpark app on Android and iPhone has the same chirp autotune, and can apply gains over Bluetooth or Wi-Fi, or USB on Android.

### Does it tune filters too?

It suggests the D-Term Filter slider with the gains. For gyro filters and noise, use the spectrum in the FlySpark blackbox viewer.

### Can I try it without a log?

Yes. Load the sample chirp flight to see every plot and number.

### Does it work with INAV?

No. The chirp autotune reads Betaflight CHIRP logs and writes Betaflight sliders.

### What is a chirp tuning step?

One sweep in the chirp log. FlySpark groups the sweeps by axis, shows the frequency response, and suggests a slider move. The suggestion is applied on the PID tab, or from this tool when you choose to write it.

