> **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="tuning-flight"></a>

# Tuning with Sokil - the tuning flight

**Summary:** Tune an ArduPilot copter or plane from the tablet - choose a tuning goal from range to tracking and keep one per mission, prepare the flight controller's log, fly a short tuning, calibration or speed sweep flight with a live checklist in the fly view, read the step response, the motors, speed and height, the AutoTune result, the energy per kilometer and the position and navigation from the log, preview a filter change, find a gain with a transmitter knob, size the tools for a heavy airframe, and turn tuning logging off.

**Audience:** pilots and field integrators

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

The **Flight controller setup** page closes the tuning loop on an ArduPilot aircraft: prepare the
flight controller's log, fly a short flight with a live checklist, read what the log measured, and
stage what to change - from the tablet, without Mission Planner, QGroundControl or a separate log
tool. It works for multirotor copters on ArduCopter and for ArduPlane in every shape - a plane, a
QuadPlane, a tailsitter or a tilt-rotor. What "better" means is yours to pick: the
[tuning goal](tuning-flight.md#tuning-flight--the-tuning-goal) runs from the longest range to the tightest tracking, and every
recommendation and verdict follows it. The page itself, its tabs and **Write to FC** are in
[Flight controller setup](fc-parameters.md#fc-parameters).

> **In testing:** the tuning flight, the new log panels, the filter preview, the tuning knob, the
> tuning goal and the speed sweep are new; the speed sweep and a Range tune are still to be proven
> on real flights. Read every suggestion before you write it, change a little at a time, fly gently after a
> change, and keep Mission Planner or QGroundControl to hand until the tools have proven
> themselves on your airframe.

Tuning suggestions are staged; **Write to FC** sends them. The separate **Logging** controls ask
for confirmation and write immediately. The **Tuning flight** checklist only follows telemetry;
it does not fly the aircraft or send flight commands. The fly view's separate flight controls can
send commands - see [The fly view](fly-view.md#fly-view).

<a id="tuning-flight--the-loop-in-four-steps"></a>

### The loop in four steps

**FC setup > Tuning > Tuning > Tuning flight** shows the loop as four numbered steps:

1. **Prepare** - the flight controller logs what the analyses need. The step reads **Ready: the log
   records what the analyses need.**, the number of settings to stage, or **Staged - Write to FC
   before the flight.**
2. **Fly** - the guide under the steps, **How to fly it**: the flight's steps as one numbered list.
3. **Read** - **The log is open.** or **No log open yet.** The button under the steps - the open
   log's name, or **Download the flight's log** - opens **Logs**.
4. **Change** - how many changes are staged for **Write to FC**.

A step the flight controller or the viewer already answers gets a green check; a step staged and
waiting for **Write to FC** a green number.

<a id="tuning-flight--prepare-the-log"></a>

### Prepare the log

The step response, the motors, speed and height, the notch helper and the filter preview all read
records that ArduPilot does not log fast enough, or at all, by default. **Prepare a tuning flight**
adds them.

1. On **FC setup > Tuning > Tuning > Tuning flight**, read the table: each setting with what the flight
   controller holds **Now** and the **New** value, and under the log setting the log types it adds
   (**Adds:** in the flight controller's own words) or turns off (**Takes away:**). Only what differs is
   listed.
2. Press **Prepare a tuning flight** (admin role). A pilot sees the table and the line **An admin
   can prepare the log for a tuning flight.**
3. Press **Write to FC** before the flight.

On a copter, and on a QuadPlane, tailsitter or tilt-rotor, Prepare also turns on the log of gyro noise
that the notch helper and the filter preview read. The flight controller can record it in two ways,
one at a time, and the card asks which under **Gyro noise is logged as**. Pick before you press
Prepare, or change your mind after it: a pick made afterwards replaces what Prepare staged, the table
shows what goes back, and you press **Prepare a tuning flight** again:

- **Raw IMU** - for filter tuning, and when the log will also be read in other tools. The gyro is
  logged for the whole flight, before and after the filters; the accelerometer is not. The log grows
  several times faster, and a slow SD card may drop records.
- **Batch sampler** - for a first notch setup, with a slow SD card, or on older firmware. A short
  sample of the gyro every few seconds: a small log, enough to find the motor noise peak, with less
  detail than raw IMU and no accelerometer.

Under **Raw IMU** there is one more choice, **Also record the raw accelerometer**, off unless you
tick it. It adds the raw accelerometer, and every gyro, for the vibration spectrum. The log grows
several times more, and a slow SD card may drop records - tick it for one flight, when vibration is
the question. If the flight controller's log settings already record it, the tick is shown set and
Prepare leaves it as it is. The batch sampler has no such choice.

Prepare turns the one you picked on and the other off, and the table shows both changes. The card
remembers the pick, and the tick, for this flight controller. On a firmware whose raw IMU logging cannot record the
gyro after the filters (ArduPilot before 4.5) the card does not ask: it uses the batch sampler and says so.

A plane without VTOL motors does not need the gyro noise for its tuning, so there the same choice sits
under the tick **Also record gyro noise**, off unless you tick it - tick it when you suspect vibration
or want to check the filters.

A plane also records its roll and pitch controllers at the rate its control loop runs, and ArduPlane
ships at 50 Hz. That is enough to see how well the plane follows what it is asked and whether a surface
runs out of travel; judging the gains needs 100 Hz. The card says which rate the flight controller runs
at and offers **Run the control loop at 100 Hz for this flight**, off unless you tick it - Prepare never
raises the rate by itself. Ticked, it is one more row in the table; restart the flight controller after
**Write to FC**, and check that it arms as usual before you fly: an older flight controller may run short
of processor time. **Turn tuning logging off** puts the old rate back.

When you open the log afterwards there is nothing to choose: the viewer reads whichever of the two
the log holds, and the notch helper says which - **from raw IMU data (the whole flight)** or
**from the batch sampler (short samples)**. A log with neither says what to turn on.

The log files grow while these settings are on - turn
them off after the tuning with [Turn tuning logging off](tuning-flight.md#tuning-flight--turn-tuning-logging-off).

Prepare only adds log types: it cannot make a flight controller that writes no log at all write one. The
**Logging** card under the goal says so - no SD card or flash storage set up, an empty log
selection or one without what the analysis needs - and asks to **Turn on logging** (admin role). **Turn on logging
for replay** is a separate choice there: it records the raw sensors for an exact replay and makes the log much
bigger. Both write to the flight controller at once, after a question, and wait while a logging setting has a change
waiting for **Write to FC**.

If the flight controller caps its logging rate below its own loop rate, the card says so in amber
with the cap: the step response then has fewer points. Prepare leaves that cap alone, because it is
often set on purpose for a small SD card; raise it on **All parameters** if the card has room.

<a id="tuning-flight--heavy-drones-and-the-airframe-size"></a>

### Heavy drones and the airframe size

A 32-inch heavy lifter turns slower than a 5-inch quad: its full-stick snap peaks well under what a
small quad reaches, its response takes about a second to settle instead of half a second, and its
rotors turn around 25 - 45 Hz rather than a few hundred. So the tools read every size-dependent
figure at the airframe's size.

**FC setup > Tuning > Initial setup** opens with the **Airframe** line, for example **Airframe: heavy, ~31" -
detected from the acceleration limits and the notch.** The size is read from the flight
controller's own settings (the acceleration limits, the notch, and in a log the motor RPM). A fresh
flight controller on its defaults says nothing, and the line reads **not known** - the tools then use
a 5" quad's thresholds, so set the size.

- **Change** (**Set the size** while unknown; admin role): pick **small** (props up to 7"),
  **medium** (8 - 13"), **large** (14 - 22") or **heavy** (23" and up), or type the **Propeller
  diameter**, then **Save**. It is kept on this tablet for this flight controller and wins over the
  detected size; **Use the detected size** goes back. A pilot sees the line.
- **Initial setup** starts from the same size and battery; its size and battery become the airframe
  once its values are written with **Write to FC** - a stage that is discarded keeps nothing.

What follows the size:

- **Step response** in the viewer follows a heavy's step for a full second and reads slower logs.
  For a log of the connected flight controller, the viewer uses the size set on this line; a log
  of another aircraft is sized from its own settings.
- The **notch helper** looks for a heavy's slow rotor down to 15 Hz. A peak far from where rotors of
  that size turn - a 200 Hz line on a 32-inch - is shown with the reason and never suggested.
- The **filter preview** reads the delay at lower frequencies on a bigger airframe.
- The fly view's **Tuning flight** counts a snap from a lower body rate on a bigger airframe (on a
  32-inch heavy multirotor 40 deg/s on roll and pitch, 25 on yaw, where a small quad needs 90 and 60),
  and asks for a slower fast leg before the stop: 8 m/s on a small or medium airframe, 6 on a large
  one, 5 on a heavy one. Choose the **Airframe** under **Copter tuning flight** each time you start
  it. When you pick the size last prepared with **Prepare a tuning flight** on this page, the snaps
  count from the rates worked out from that flight controller's own limits.

**Position and navigation** does not follow the size class: it reads what the aircraft itself
reached, and **Braking against the airframe** checks the Loiter brake against how fast this airframe
leans, from its own acceleration limits. A heavy's height hold on gains above ArduPilot's starting
point is noted there, not corrected (see [Position and navigation](tuning-flight.md#tuning-flight--position-and-navigation)).

**AutoTune on a heavy** may stop with **Twitch Size Determination Failed** (seen on a 32-inch heavy
multirotor on its own tune): lower the **Aggressiveness** on the **AutoTune** card, check the
acceleration limits (**Initial setup** sets them for the prop size), and try again in calm air.

<a id="tuning-flight--the-tuning-goal"></a>

### The tuning goal

**FC setup > Tuning > Tuning > Tuning goal**, beside the **Tuning flight** card, says what this aircraft is tuned
for, from the least energy per kilometer to the tightest tracking. Every recommendation and verdict
on the Tuning tab and in the log viewer follows it. The card is there for every aircraft the tab
serves and for every role - choosing what the aircraft is for is the pilot's call. With a log open,
the same goal can also be picked at the head of **What to change**; the two always show one step.

The scale has five steps between **Longer range** and **Tighter tracking**:

| Step | What it is for |
|---|---|
| **Range** | The least energy per kilometer. The aircraft may be softer, slower to react and wander a little in wind. |
| **Economical** | Most of the saving, with less of the softness. |
| **Balanced** | Tracking and energy weighed evenly - the recommendations the page made before the goal. |
| **Precise** | Tighter tracking for a little more energy. |
| **Locked-in** | The tightest tracking the aircraft can hold, whatever it costs in energy. |

**Balanced** is where every aircraft starts, and it changes nothing: until you move the goal, the
page recommends exactly what it did before. Under the scale, one sentence for the step and two boxes,
**You gain** and **You give up**, in a copter's or a plane's terms - at **Range** on a copter, for
example, **Drifts a meter or two off the line in gusts** and **Stops and turns take longer**.

**What saves energy is the cruise speed.** Only the speed the aircraft cruises at moves the energy
per kilometer by more than a percent or two. The softer stick feel, gentler stops and slower
corrections toward **Range** buy smoothness and fewer current peaks, not range. And flying slower
than the aircraft's best-range speed costs more per kilometer, not less - for a multirotor as for a
plane. So the card never guesses a cruise speed: toward **Range** it takes one only from a
[speed sweep](tuning-flight.md#tuning-flight--fly-a-speed-sweep) measured in the log open in the viewer, and the energy line says
which it is - a percentage **measured in** that log, or **A percent or two of energy from these
settings alone - the cruise speed is what saves, and it takes a speed sweep log**.

<a id="tuning-flight--what-each-step-changes"></a>

#### What each step changes

**What Range changes** (the step's name in the heading) lists every setting the step moves, with
**Now** and **Goal**, grouped by what the change buys:

- **Energy** - the cruise speed: a copter's **Mission speed**, a plane's **Cruise airspeed**, and
  what goes with them. A speed worked out from a log is marked **measured**.
- **Smoothness** - the stick feel, the acceleration limits, Loiter braking, and on a plane the
  throttle.
- **Tracking** - how firmly position, height, speed and the track are held.
- **Next AutoTune** - the AutoTune aggressiveness or level. It acts only when AutoTune runs next;
  the rate gains and filters themselves are AutoTune's to set.

A row the step cannot move yet stays, with why:

- **unchanged - fly the speed sweep (Tuning flight card) and open its log, so the page can measure
  the cheapest speed** - the cruise speed without a measured curve;
- **unchanged - the cheapest speed in the open log is at the edge of what was flown; fly legs past
  it**;
- **unchanged - it acts only with an airspeed sensor** - a plane setting that does nothing without
  one;
- **unchanged - raised only when an open log shows the motors have thrust to spare** - the
  acceleration limits at **Locked-in**. A log that did not record the motor outputs shows nothing
  about the motors, so it keeps this line too.

On a plane, a lower cruise airspeed always stays clear of the stall with a margin, even at its
bank limit, and when the plane has no ground speed floor the card sets one with it, so a strong
headwind cannot stop it over the ground. The margin is the widest of: the minimum airspeed at the
plane's bank limit plus 1 m/s, the minimum airspeed plus 2 m/s, 1.3 times the stall speed where the
flight controller has one, and on a VTOL the speed below which its VTOL motors help the wing plus 4 m/s.
A flight controller that reports no minimum airspeed keeps its cruise, with **unchanged - the flight
controller reports no minimum airspeed, so there is no stall margin to keep**. And whatever the step,
a cruise airspeed already under the margin gets an amber line on the card - for example **The cruise
airspeed (11 m/s) is under this aircraft's safe margin of 11.7 m/s** - with **Stage 12 m/s** to raise
it. A cruise also stays at least 2 m/s under the maximum airspeed. When the margin is above the
maximum airspeed less 2 m/s, no cruise fits between the two: the card changes no cruise, says **unchanged
- the airspeed limits are too narrow**, offers no **Stage** button on the amber line, and asks you to
widen the airspeed limits on the **Speed and height** card first. On a
copter whose return speed follows the mission speed, **Return speed** is kept where it was. A step
never touches the lean limit, the climb and descent speeds, or the battery and failsafe settings.

Untick a row to leave it as it is, then **Stage N changes** and **Write to FC**. On **Balanced** the
list reads **Balanced changes nothing: it is the page's recommendation as before. Pick another step
to see what it moves.**; once the flight controller holds a step, **The flight controller already
holds this step's values.**

**Every step is priced from one set of values**: **Priced from the flight controller's values of**
a date - the values the flight controller held when the goal first moved off **Balanced**. Moving
between steps never piles one step's change on another's, and going back to **Balanced** gives those
values back. After you retune at **Balanced** - a new AutoTune, say - press **Use today's values
instead** so the steps are priced from the new tune. The goal is kept on this tablet for this flight
controller.

**Verdicts follow the goal too.** The step response's band and its overshoot and settle flags, the
**Attitude** panel's tracking, and the height hold, the Loiter stop and a plane's settling after a
waypoint in **Position and navigation** are judged tighter toward **Locked-in** and looser toward
**Range**. A panel or card judged for another step than **Balanced** says so in one line, for example
**Judged for the Range goal.** or **Judged for Survey (Range goal).** Vibration, the motor balance and
headroom, the roll against pitch comparison, the notch and the airspeed sensor check never move: a
bad reading there costs energy and tracking alike.

<a id="tuning-flight--mission-goals"></a>

#### Mission goals

A **mission goal** keeps this aircraft's settings for one kind of mission, so you can switch back to
them later - say Survey on **Range** and Inspection on **Precise**. Each goal is a name, a step and
the flight controller's values it kept, the tuned rate and angle gains included: switch to a goal
flown after its own AutoTune and you get that tune back.

1. **Name this goal** (**New goal** once there is one) creates it, at most 24 characters: it starts
   with the step shown and keeps the flight controller's values as they are now.
2. Each goal is a chip with its name and step, with a check when the flight controller holds it
   (**On the flight controller**). Tap a chip to select it; the pencil renames it, the bin deletes it.
   There can be up to 8.
3. Under the chips, one line says where the selected goal stands:
   - **The flight controller holds Survey.** - nothing to do.
   - **Survey has no settings kept yet.** - fly with it, then **Keep the flight controller's values
     in Survey** once they are the ones this mission flies with.
   - **The flight controller holds Inspection. Switching to Survey stages its N kept settings.** -
     **Stage Survey (N settings)**, then **Write to FC**. Keeping is not offered here: it would copy
     Inspection's settings into Survey.
   - **The flight controller holds N settings that differ from Survey** - switch back to what Survey
     kept, or keep what the flight controller holds now.
4. After you stage a step's changes, the card reads **N changes staged. Write to FC sends them; then
   keep them in the mission goal.**

Which goal the flight controller holds is read from its values each time, never remembered - a
change made elsewhere shows at once. Mission goals are kept in this browser for this flight
controller; another tablet does not see them. Deleting one forgets its kept settings here, and the
flight controller keeps whatever it holds now.

<a id="tuning-flight--fly-the-tuning-flight"></a>

### Fly the tuning flight

The card's **How to fly it** has the steps for your aircraft. The same steps are what the fly view's
[Tuning flight row](tuning-flight.md#tuning-flight--the-tuning-flight-row-in-the-fly-view) follows while you fly.

<a id="tuning-flight--a-copter"></a>

#### A copter

1. **Before you take off** - calm air, a fresh battery, props checked, and the prepared settings
   written to the flight controller.
2. **Hover** - 30 seconds in AltHold or Loiter, steady, with light hands on the sticks. The motors
   and the notch are read from the hover.
3. **Snaps** - in AltHold or Stabilize, not Loiter: sharp full-stick inputs, back to center each
   time, about a second apart: three each way on roll, then on pitch, then on yaw. The step response
   is read from the snaps, and so is how quickly the aircraft answers its controller, which a roll or
   pitch gain change needs.
4. **Fast leg and stop** - switch to Loiter and push the stick fully forward along a straight line
   until the aircraft flies at its leg speed or faster - 8 m/s on a small or medium airframe, 6 on a
   large one, 5 on a heavy one; the card names the one for the **Airframe** line's size - then center
   the sticks and let it brake and stop by itself. Keep the sticks centered for a few seconds. Leave
   room ahead: a heavy aircraft needs tens of meters to stop. **Position and navigation** reads the
   stop.
5. **Land and read the log** - land and disarm, then download the log and open it in the viewer
   (see [Read the log](tuning-flight.md#tuning-flight--read-the-log)).

<a id="tuning-flight--a-plane"></a>

#### A plane

1. **Before you take off** - calm air, a fresh battery, control surfaces checked, and the prepared
   settings written to the flight controller.
2. **Level leg** - in FBWA or CRUISE, 30 seconds straight and level at cruise airspeed, wings level.
3. **Climb** - in FBWA, full throttle, hold cruise airspeed with the pitch stick for 20 seconds.
4. **Glide** - from a safe height, in FBWA, throttle closed, hold cruise airspeed with back stick
   for 20 seconds.
5. **Snaps** - sharp full-stick inputs, back to center each time, about a second apart: three each
   way on roll, then on pitch.
6. **Land and read the log** - land and disarm, then download the log and open it in the viewer.

The level leg, the climb and the glide are what **Speed and height** calibrates from. Its checks
also want some flying in an automatic-throttle mode, such as CRUISE or FBWB.

A QuadPlane, tailsitter or tilt-rotor flies the plane's flight; for the hover's step response and
motors, add a steady 30-second hover in QHOVER or QLOITER and a few snaps in it.

<a id="tuning-flight--an-autotune-flight"></a>

#### An AutoTune flight

An AutoTune flight has its own checklist, on the **AutoTune** card of **Tuning > Tuning** (on a plane,
the **AUTOTUNE** card; on a QuadPlane also the VTOL autotune card) - see
[AutoTune](fc-parameters.md#fc-parameters--autotune). Prepare is not needed for it; the log still tells you
afterwards whether the gains were kept.

<a id="tuning-flight--fly-a-speed-sweep"></a>

#### Fly a speed sweep

The speed sweep is a flight of its own, for the tuning goal's **Range** end: it measures the energy
per kilometer at three speeds, and the speed that goes furthest on a battery. **How to fly it** ends
with it, as **Speed sweep (for Range)**.

- **Three speeds** around the cruise speed - about 0.7, 1.0 and 1.3 times it. On a copter that is
  the mission (waypoint) speed, flown as ground speed; on a plane the cruise airspeed, never slower
  than the minimum airspeed plus 2 m/s nor faster than the maximum airspeed minus 2 m/s. The section
  names them, for example **With the cruise speed of 10 m/s: about 7, 10 and 13 m/s.**, or says the
  flight controller lists no cruise speed (or, on a plane, no minimum airspeed). When the maximum
  leaves too little room for the usual three, they are spaced out again below it, closer together;
  only an airspeed range too narrow for a curve leaves speeds out, and the section says so.
- **Straight, level legs, out and back**: hold each speed steady for at least 10 seconds on a copter,
  15 on a plane, one way, then the same back the other way - so a steady wind cancels out.
- **How**: on a copter, a mission in Auto with a change-speed item before each pair, or Loiter along
  one line; on a plane, a mission in AUTO with a change-speed item before each pair (the flight
  controller reports "Set airspeed"), or CRUISE or FBWB by hand.
- **When**: calm-ish air, with the payload and the battery charge you normally fly with. The log
  needs the battery current and a GPS fix.

Afterwards open the log in the viewer: its [Efficiency](tuning-flight.md#tuning-flight--efficiency) panel draws the curve, and the
**Tuning goal** card can take the cruise speed from it.

<a id="tuning-flight--the-tuning-flight-row-in-the-fly-view"></a>

### The Tuning flight row in the fly view

While you fly, the fly view follows the flight step by step. In the fly view's toolbar open
**More tools** (the three dots) and choose **Tuning flight** (admin role), pick the flight - **Copter tuning flight**, **Plane calibration flight**, **Speed
sweep** or **AutoTune** - and press **Start**. The fly view offers the one that fits the aircraft on screen
first, and AutoTune when the aircraft is already in it.

A row opens under the picture, above the stats strip - never over the video. It reads the aircraft
on screen's own telemetry and sends nothing to it, so it works in view-only, and on a recorded flight
it plays along with the recording. Until telemetry arrives it says **No telemetry from the aircraft
yet**.

- **Left**: the next step in words, for example **Steady hover** or **Snaps on pitch**, with one
  short instruction under it.
- **Right**: every step as a chip. A green check is done; the step in progress shows its count,
  **18/30 s** for a timed step or **2/6** for snaps; a hollow circle is still to do.
- Steps count in any order, and the seconds add up across the flight: a hover broken off and
  resumed keeps what it had.
- The chevron folds the row to one line; the cross closes it. Pressing **Tuning flight** again
  offers **Start over** and **Close the card**.
- Switching to another aircraft with the **Camera switcher** starts the row over: the flight you
  picked and its settings stay, the steps count from zero for the new aircraft.
- For **Copter tuning flight** the picker also asks the **Airframe** - **Small**, **Medium**,
  **Large** or **Heavy** - which sets how hard a snap must be to count and how fast the leg before
  the stop (see [Heavy drones](tuning-flight.md#tuning-flight--heavy-drones-and-the-airframe-size)). It asks every time: it opens
  with no size chosen and **Start** waits until you pick one, because the fly view cannot tell one
  aircraft from another and a size carried over from a heavy would pass a 5-inch quad's wobble as
  snaps. **Start over** during a flight keeps the size of the flight in progress. Under the choice,
  for example **Last prepared on the FC setup page: Heavy.**, names the size last prepared there -
  a reminder, never picked for you. Pick that size, and the snaps count from the rates worked out
  there from that flight controller's own limits.
- For **Speed sweep** the picker asks the **Cruise speed** - a copter's waypoint (mission) speed, a
  plane's cruise airspeed - and on a plane also the **Minimum airspeed** (required, so no band flies
  near the stall) and the **Maximum airspeed (optional)**; **Bands:** shows the speed bands the row
  counts. The fly view reads no settings from the flight controller, so the fields start from the ones
  the FC setup page last recorded - **Prepare a tuning flight**, or opening the guide's **Speed sweep
  (for Range)** section, records them - with **Filled in from the last Prepare on the FC setup page -
  check they are this aircraft's before you fly.** Otherwise type them; **Start** waits until they
  are there. A leg's direction is the aircraft's track over the ground while it has a 3D GPS fix, so
  a copter flown out and back without turning its nose still counts. The row then asks for each band in turn, for example **Hold 7
  m/s straight and level for 10 s, then the same back the other way**, and **Now back the other
  way** once the first leg counts. A leg counts by the same rule the log's
  [Efficiency](tuning-flight.md#tuning-flight--efficiency) panel reads it with, so a leg ticked here is one the panel can use.

The steps per flight:

| Flight | Steps |
|---|---|
| **Copter tuning flight** | Airborne, Hover (30 s), Roll, Pitch and Yaw snaps (six each - three each way, past the airframe's snap rate), Stop (in Loiter: a second at the airframe's leg speed or faster, then stopped within 10 s and still for 3 s), Land |
| **Plane calibration flight** | Airborne, Level (30 s), Climb (20 s), Glide (20 s), Roll and Pitch snaps (six each), Land |
| **Speed sweep** | Airborne, Slow, Middle and Fast (two legs each - one out, one back, of at least 10 s on a copter and 15 s on a plane), Land |
| **AutoTune** | Airborne, one chip per axis being tuned, Saved |

After landing the row sums up - **All steps flown**, or **Landed with N steps to go** (arm again to
carry on) - with **Turn tuning logging off on the Tuning tab when you are done**, and closes by
itself after a while. Then download the log from **FC setup > Logs** - after a speed sweep the row
says to open its **Efficiency** panel.

<a id="tuning-flight--keeping-autotune-s-gains"></a>

#### Keeping AutoTune's gains

On an AutoTune flight the row follows the tune axis by axis from the flight controller's own
messages, and a line across the whole row tells you what happens to the gains. It stays when the
row is folded.

- **Copter, and a QuadPlane's QAUTOTUNE**: the new gains are kept only when you **land and disarm
  while still in AutoTune**. Once the tune has finished the row reads **Land and disarm in AutoTune
  to keep the gains** in amber. Switch AutoTune off, or change the flight mode, before you disarm and
  the original gains come back; the row turns red: **The original gains are back - switch AutoTune on
  again to fly the tuned ones, and disarm in AutoTune to keep them**. Disarmed without a save, it
  reads **The tune was not saved - the aircraft keeps its old gains**.
- On newer firmware the aircraft flies its original gains while it stays in AutoTune after a
  successful tune, and the row reads **Flying the original gains now - to keep the tuned ones, disarm
  in AutoTune, or with the test-gains switch on once you have used it**. If you have not used the
  AutoTune test-gains switch, disarming in AutoTune keeps the tuned gains. Once you have used it, the
  switch decides, not the mode: the tuned gains are kept only if they are the ones flying when you
  disarm.
- **A plane's AUTOTUNE** keeps each axis as it finishes - the row reads **Each axis is kept as it
  finishes**.
- **QuickTune** keeps the tune only once it is saved: move its switch to the save position before you
  disarm.
- **Gains saved** in green confirms it; **AutoTune failed - check the messages on screen, then try
  again in calm air** in red means the tune stopped.

<a id="tuning-flight--read-the-log"></a>

### Read the log

After landing, on **FC setup > Logs**, **Download** the flight's log and press **Open in viewer**
(or **Open a .BIN file** for a log saved earlier) - see
[The flight-log viewer](fc-parameters.md#fc-parameters--the-flight-log-viewer). The viewer opens with
**What to change** - one list of everything the flight suggests, each with what was measured and a
button that stages it - and under it the panels, grouped as **Overview**, **Filters**, **Response**,
**Motors and vibration**, **Speed and navigation** and **Flight**. Each group is a closed row with one
line of what it found and how many suggestions it backs: press it to open - any number can be open at
once - or press **Show the evidence** on a suggestion. 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. The panels' own buttons that stage a value this flight measured (the notch, AutoTune, speed and
height, navigation and changed between the flights) check it the same way: when the check fails
nothing is staged and the reason shows under the button. The tuned gains AutoTune did not keep, the
navigation settings, a plane's calibration legs and the cruise speed toward **Range** also come up in
**What to change**, staging the same values as their panel's button. **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. The eight panels below are the
tuning ones; **Motors** shows only for a multirotor's log (and a QuadPlane's VTOL hover), **Speed and
height** only for a plane's. The ninth, **Position and navigation**, has
[its own section](tuning-flight.md#tuning-flight--tune-the-navigation). A log of another aircraft stages nothing: the list says why.

The same list and panels - without the flight's summary, which stays on Logs - also show on **FC setup > Tuning > Tuning**, under the **Flight log** card, so you read them beside
the cards you change. It is the tool that [Tools > FC Tuning](fc-tuning.md#fc-tuning) opens for a log
file with no flight controller connected. It is the same log: a log opened on either tab is open on
both. With no log open the card offers **Download from the FC** and **Open a .BIN file**; with one
open, **Show on Logs**.

<a id="tuning-flight--filters-try-a-change-on-this-flight"></a>

#### Filters - try a change on this flight

Under **Filters**, the card **Filters - try a change on this flight** lists the gyro's filters as rows
you can edit, and shows at once what a change would do to this flight. It needs a log with gyro data
from before the filters - the prepared tuning flight records it; without it the rows can still be
edited and the card says what to record. The **Notch helper** is a part of this card: the notch the
flight suggests sits under the chart, above the rows it changes, and the card's chart is the one
picture of the flight's noise - take the suggestion and the chart draws the notch on it.

For Copter 4.7.1, the helper offers a second notch, added harmonic or wider notch only when the recorded full filter chain agrees with the flight, the noise width is measured, and the change meaningfully reduces noise within the aircraft's delay limit. Missing evidence keeps the settings flown. For Copter 4.7.1, the helper may offer a scored switch from a flown throttle-tracking notch to ESC or FFT tracking when the log contains the required source-update and filter inputs and the candidate passes its noise and delay checks. The candidate is marked **Not flight proven**; staging it needs no extra confirmation, and a separate check flight is needed. Average ESC RPM or FFT peaks alone cannot supply those inputs, so an ordinary log keeps the flown source; they also do not justify an initial ESC or FFT notch setup. For QuadPlane, ESC and FFT tracking suggestions remain unavailable. For the next flight, record gyro data before and after the filters, relevant ESC RPM or FFT readings, and actual motor throttle (MOTB) at low, hover and high throttle, including transitions. Use the helper's pre/post recording hint.

- **The chart** - the flight's gyro noise by frequency: **Before the filters** in gray, **Filters as
  set**, and after you change a row **With your changes**. Each filter is named where it acts: a
  shaded band for a notch, a dashed line for the low-pass. The chart opens on the low frequencies,
  where the motors and the filters are; **Whole range** shows all the log holds. A good chart: after
  the filters the line sits well under the gray one at every peak, and stays close to it at low
  frequencies.
- **Delay the filters add, ms** - the price of every filter. On a copter at three frequencies that
  follow the airframe size: the **Gyro filters** and the **D term**. On a plane at 3 Hz, a reference
  point and not the aircraft's measured limit: the **Gyro filters**, then **D term, roll** and
  **D term, pitch**, and for a QuadPlane whose log shows a hover the two hover D terms as well. A
  changed figure shows before, after and the difference. Less is better.
- **The filters, in the order the gyro signal passes them** - **Motor noise notch**, **Second
  notch**, **Gyro low-pass**, and on a copter **D-term low-pass**, each with a sentence on what it is
  for, what it costs in delay on its own, and its rows. A notch costs little delay; the gyro
  low-pass costs the most. In place of the D-term low-pass a plane has **D-term filters, forward flight** - the error and D
  cutoffs of its roll and pitch controllers - and a QuadPlane with a hover in the log also
  **D-term filters, hover**. Their target cutoffs sit under **More settings**: they smooth what is
  asked of the aircraft, so they are not part of the delay. When the card cannot work a plane's
  filters out - the firmware's own parameter descriptions are missing, or the loop rate is - it says
  which and shows no figure for them.

Change a row and the sentence at the top of the card says what it costs - for example that the
aircraft would react a few milliseconds later, which is worth it only if the noise drops at the
peaks. **Put the filters back** takes every filter change back. A change made here is an ordinary
pending change: on the Flight controller setup page it waits for **Write to FC** with the others,
and on [Tools > FC Tuning](fc-tuning.md#fc-tuning) it goes into the file.

A notch that was off shows only its switch until you turn it on. On the Flight controller setup
page its other settings then appear at once - the page asks the flight controller for them - and
one **Write to FC** sends the switch with them; the notch starts after a restart. A log file cannot
be asked: when the file turns a notch on without its settings, the file and **Review the file** say
so. Load it on the Flight controller setup page, which lists those settings before the Write.

For a Copter 4.7.1 throttle notch, **Throttle-notch evidence** compares the current and candidate filters against actual motor throttle (MOTB), recorded gyro data before and after the filters, and this aircraft's lag ceiling. It shows low, hover and high throttle separately. If the firmware model does not agree with this flight's measured post-filter gyro, or motor-line coverage is unresolved, the page stages no notch change. A candidate is for a separate check flight; see [The notch helper](fc-parameters.md#fc-parameters--the-notch-helper).

The switch above the chart changes what it shows:

- **Noise by throttle** - frequency across, throttle up, darker where the gyro is noisier, with a
  mark where each notch sat. Motor noise is a dark streak that leans to the right as the throttle
  rises; a good notch sits on it in every row, and **After the filters** shows the streak gone. A
  streak that stands straight up is the frame resonating. It needs the gyro recorded for the whole
  flight - **Raw IMU** in **Prepare a tuning flight**.
- **What the filters do** - how much the filters cut at each frequency and how late the signal
  arrives, for the **Gyro filters** and for the D term on roll and pitch. After you change a row the
  chart draws the filters as set against your changes.
- **D-term noise** - the D term's own noise on each axis, and a table of its filters with the value
  set, ArduPilot's starting value and the delay each adds. The starting value is for a first setup:
  a difference from it is something to look at, not a fault.

Under a view the card lists what the log could not tell and what to record or check, in plain
sentences. The same findings come up in **What to change**: a noise peak that still gets through,
a second notch supported by measured noise reduction within the aircraft's delay limit, or a lower gyro cutoff supported by the same evidence. **Add all** skips a suggestion marked **Rule not yet seen on a real log**.
The separate **Not flight proven** mark does not exclude a suggestion from **Add all**; it means the
model behind the change still needs checking in a separate flight.

<a id="tuning-flight--which-part-of-the-controller-does-the-work"></a>

#### Which part of the controller does the work

Under **Response**, this card shows for roll, pitch and yaw how the controller's output is shared
between **Proportional**, **Integral**, **Derivative** and **Feed-forward** - over the **Whole
flight** and **In sharp stick moves** - with how much of the flight the I term spent near its limit
and how much of the D term is fast shaking. A badge says **Near its limit** or **Noisy** when a
check flags it; otherwise **Below this check's threshold**, which means only that - not that the
tune is safe. It needs the fast PID records the prepared tuning flight turns on.

Gain suggestions in **What to change** are one small step on one axis, and only from a flight that
passes every check. When a flight gives none, the list says why. A reason the aircraft itself
caused, such as a motor that ran close to full power, vibration, or the throttle held back to
protect the battery, is a line under **Check on the aircraft** with what to look at. The other
reasons are under **This flight gives no gain suggestion.**, each with what to do before the next
flight. A log with no vibration readings at all does not hold the suggestions back: the first gain
suggestion of the list then carries a line that vibration was not measured in this log. The line is
said once and holds for every gain suggestion of the list: none of them was checked against
vibration.

Beside the motor line there can be one more: **an axis answers the stick weakly even with power to
spare: its P gain may be too low**. It appears only when the aircraft hovers below half throttle -
by the highest steady throttle measured at level altitude in this flight (a climb or a descent
is not the hover, and with no such stretch the line is not shown), not only the value the flight
controller had learned; the line says which of the two it shows -
the flight controller reported no loss of thrust, and at least 20 stretches of stick movement, a
few seconds each, made with no motor near full power or at its lowest output stopped, on average,
below 80 % of the rate asked for without going past it. A landing in which the accelerometer
hit its measuring limit is left out. The level stretch has to last at least 2 seconds at steady
throttle - in practice a flight in a mode that holds altitude (ALT_HOLD, LOITER); a flight in
STABILIZE, with the throttle held by hand, usually has none. A steady climb at 50 % throttle or
more also keeps the line off. It offers no
setting to take and is marked **Not flight proven**: so far it rests on simulated flights only.
When the motor line shows as well, first find out why the motor ran close to full power, then fly again
and open the new log.

On a copter flown in Stabilize or Acro, a motor can also sit at its **lowest** output when you lower
the throttle stick, and there it cannot slow down to hold the attitude. **Motors and airframe** then
says for how much of the flight that happened and where the stick was, in two rows: with the stick at
zero, raise ATC_THR_MIX_MIN (it goes up to 0.25); with the stick low but above zero and below the
hover throttle, raise ATC_THR_MIX_MAN. Time with the stick above the hover throttle, and flying in
AltHold, Loiter or any other mode that holds the height, suggest neither. A higher value keeps more
throttle in a descent, so the aircraft sinks more slowly with the stick down. The other way is an
AirMode switch on the radio: with it on, the stick at zero is treated as low stick, but the flight
controller detects the landing later - be ready to disarm. When the flight controller held its
correction back mostly during that time, the gain list says so instead of a general "find what pushes
it to its limit". These rows are marked **Rule not yet seen on a real log** until a flight with the
new values, so **Add all** skips them.

<a id="tuning-flight--vibration-from-the-raw-accelerometer"></a>

#### Vibration from the raw accelerometer

Under **Motors and vibration**, this card shows how hard the frame shakes on each axis, the
frequency it shakes most at, and the whole spectrum. On a Betaflight log it is headed **Vibration
from the accelerometer record**: Betaflight records the accelerometer already filtered, so read it
as a lower bound. One narrow peak that moves with the throttle
is a propeller or motor out of balance; a peak that stays at one frequency is a loose part or a
soft mount. It needs the raw accelerometer in the log: tick **Also record the raw accelerometer**
in **Prepare a tuning flight** for one flight. Without it the card says what to set.

<a id="tuning-flight--step-response"></a>

#### Step response

How fast and how cleanly each axis follows the stick, measured from the flight's snaps: one chart
each for roll, pitch and yaw, all on the same scale, where 1 is on target. The shaded band behind
each curve is where a good response stays once it has risen. On a QuadPlane the hover and forward
flight are shown separately. The band, and how much overshoot or how low a settle is flagged, follow
the [tuning goal](tuning-flight.md#tuning-flight--the-tuning-goal): narrower toward **Locked-in**, wider toward **Range**, with a
**Judged for** line under the heading when the goal is not **Balanced**.

- Under each chart: **Delay** (how long the aircraft takes to get half-way), **Overshoot**, **Settles
  at** and **Stick inputs used**.
- A chip flags what to look at: **Overshoots**, **Stays below the target**, or **Slower than** the
  other axis (roll against pitch on a multirotor).
- No curve? The panel says why: the log has no records of how the aircraft followed the stick
  (prepare the log), the log was **too slow for a step response**, or there was **not enough stick
  input** on that axis - fly more snaps.

What to do with a flag: run AutoTune, or change that axis's gains on **Tuning > Gains**
a small step at a time. Then fly the same flight again and compare.

**Compare with another log** opens a second `.BIN` file - usually the flight before the change. Its
curve is drawn dashed behind this one, its figures in brackets, and **Changed between the flights**
lists every parameter that differs between the two, the tuning ones first. Only the tuning rows can
be put back: **Stage** on a row, or **Stage N tuning values from** the other log for all of them,
stages the other flight's values for **Write to FC**, when the change made things worse. The rest -
calibration, frame, outputs, ports, battery - is shown for reference. Staging is off, with the
reason, when either log is not from the connected aircraft.
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.

<a id="tuning-flight--motors"></a>

#### Motors

For a multirotor, each motor's output in the hover against the average of all of them - more than
10 % off is **Marginal**, more than 20 % **Too high** - drawn on the frame seen from above, nose up,
with each motor's spin direction, and as a table (**Hover output**, **From average**, **At the
limit**). These lines are the same at every step of the tuning goal.

- **Groups of motors** compares the clockwise against the counter-clockwise motors, front against
  back and left against right. Uneven spin groups likely mean a motor twisted on its arm or a weak
  motor or ESC; uneven sides likely mean the center of gravity is off - move the battery or the
  payload. These readings say "likely": ArduPilot itself does not compare motor groups.
- **Headroom**: time a motor sat at its output limit, the battery current limit, the hover throttle
  and the yaw I-term against ArduPilot's warning line. A motor at its limit or a high hover throttle
  means little power is left - lighten the aircraft or fit a stronger power system. A yaw I-term
  over its line means constant effort to hold the heading - check every motor sits straight.
- **The flight controller's warnings** quotes a yaw imbalance or a suspected thrust loss the flight
  controller logged, with its time.

<a id="tuning-flight--speed-and-height"></a>

#### Speed and height

For a plane, what the calibration flight measured, one tile per leg in flight order:

| Leg | Measured | Setting it suggests |
|---|---|---|
| **Level** | **Cruise throttle**, **Level pitch** | the cruise throttle and the level-flight pitch trim |
| **Climb** | **Steady climb** | the maximum climb rate, with a margin for a tired battery |
| **Glide** | **Sink rate** | the minimum sink rate |

Each value shows the seconds it was measured over, its spread, **Now** and **Suggested**, and
**Stage**. A leg you did not fly reads **Not flown in this log** with one sentence on how to fly it.
Over the tiles, a height chart shades the legs found.

A suggestion outside the setting's own range is shown but cannot be staged: the leg did not look
like the measurement it needs (for the glide, a gentle glide at cruise airspeed with the wings
level), so fly it again, gentler, or check the airframe. The glide tile also says the pitch it was
flown at, so a dive taken for a glide shows as one.

**Checks** read the speed and height control where it ran: **Climb limited by the motor**, the
**Nose-up limit** and **Nose-down limit**, **Underspeed**, **Descent not reached**, **Slow in
turns**, **Control surfaces at full travel** and the **Airspeed sensor** against GPS and wind. Each
is **OK**, **Check** with what to change, or **Not in this log** with what it needs - most of them a
flight in an automatic-throttle mode.

<a id="tuning-flight--autotune"></a>

#### AutoTune

Whether the tune in the log finished and whether the flight controller kept the gains, axis by
axis: **Saved**, **Finished, not kept** (with why - for example disarmed in another mode), **Finished,
not saved yet**, or **Not finished**. **What happened** lists the tune's events with their times.

When gains were lost, **The tuned gains were not kept** shows the tuned values from the log against
the flight controller's, with **Stage the tuned gains** - then **Write to FC** and fly gently to
check them. The panel also says how to keep them next time.

The same verdict is one line on the AutoTune card of **Tuning > Tuning** (on a QuadPlane, the VTOL
autotune card) for the log open in the viewer: **Saved**, **Gains lost** or **Not finished**, with **Open the
AutoTune result**.

<a id="tuning-flight--efficiency"></a>

#### Efficiency

What the flight cost per kilometer, and this aircraft's own energy curve: the energy per kilometer
at each steady speed it flew, and the speed that goes furthest on a battery. It reads any log with
the battery current and a GPS fix; the curve needs a [speed sweep](tuning-flight.md#tuning-flight--fly-a-speed-sweep).

- **Flight time**, **Energy used in flight**, **Distance**, **Energy per km** and **Mean ground
  speed** over the flying part of the log (the Battery panel's **Energy, whole log** also counts the
  time on the ground). **Flight time** is on every flight. Under 0.2 km flown there is no energy per
  km for the whole flight - take-off and landing would outweigh the rest. When the GPS reported no 3D
  fix for much of the flight the panel gives no distance, no energy per km and no mean ground speed
  for the whole flight, and says so: a sum of the parts it did fix would be too short. A chart drawn
  on such a flight is not the whole flight's figure: its points come from steady legs flown between
  the gaps in the fix, each measured over its own distance. The energy used is still shown, also
  with no GPS fix at all - the battery measures it, not the GPS.
- **Energy per km against ground speed** (a copter) or **against airspeed** (a plane): one point per
  steady speed flown - solid for **Out and back: wind canceled**, hollow for **One way: wind not
  canceled** - and the curve through them, drawn only across the speeds flown. A steady leg is
  straight and level at a steady speed for at least 10 seconds on a copter, 15 on a plane.
- **Best range** marks the cheapest speed with its energy per km, **Your cruise** the flight
  controller's cruise setting on the same curve, with how much more it costs (or **outside the speeds
  flown**). Under the axis, the five tuning goal steps' cruise speeds are ticks, the selected step's
  in dark.

When there is no curve, the panel says why: **This log has no battery current** (set up the battery
monitor's current sensor), **no GPS fix in flight**, too few steady legs, every leg at one speed, or
speeds too close together - then **Fly the speed sweep** with **Open the Tuning tab**. Notes under the
chart say when the cheapest point sits at the slowest or the fastest speed flown (fly slower or faster
legs to find the bottom), when the legs were one way only (fly each speed out and back), and when the
curve fits the points loosely, where the best speed is only a rough guide.

A log opened with **Compare with another log** (under **Step response**) shows here too: its curve
as a ghost, and the difference over the whole flight, for example **-14 % energy per km against** the other log - fly a **Range** tune
and a **Balanced** one and compare.

With **Range** or **Economical** selected on the tuning goal and a log of the connected aircraft, the
panel shows the cruise setting now and for the goal - **Range** flies the best-range speed,
**Economical** a speed between your cruise and it - and **Stage cruise speed for Range** stages it;
then **Write to FC**. Otherwise one line points to the **Tuning goal** card, or says **The flight
controller already flies the Range cruise speed from this curve.**

<a id="tuning-flight--tune-the-navigation"></a>

### Tune the navigation

The same log also shows how the aircraft flies on its own: how it holds position and height, how it
stops when you let go of the stick, and how it flies missions and returns home. On a copter this is
read in Loiter, AltHold and PosHold, Auto and Guided, RTL and Land; on a plane in Auto, Guided, RTL,
Loiter and Circle.

**Fly for it**: the tuning flight's hover in AltHold or Loiter already counts for the height and
position hold, and its **Fast leg and stop** step for the stop: a fast straight leg in Loiter, the
sticks centered, and the aircraft left to stop on its own for a few seconds. Fly the stop a few more
times at the speed you normally fly - the fly view's **Stop** chip turns green on the first one. For
missions and the return home, fly one. ArduPilot logs the
position records by default; the times at the thrust and lean limits need the PID records that
**Prepare a tuning flight** turns on.

<a id="tuning-flight--position-and-navigation"></a>

#### Position and navigation

The viewer's **Position and navigation** panel.

**Stopping in Loiter** (a copter): the fastest stop in the log drawn from above, to scale, with the
braking direction and a scale bar - **Where it was asked to go** dashed, **Where it flew** solid, the
stop point as a circle, and **Past the stop point** as a bracket with its distance. Beside it:
**Speed at release**, **Time to stop**, **Stopping distance** and **Came back past it**. A log with no
such stop says **No stop in Loiter in this log** and how to fly one.

**What the aircraft reached**: **Fastest climb** and **Fastest descent** (a copter), **Top ground
speed**, **Largest lean** and **Wind**. **Wind** reads **Not estimated** when the flight controller
did not estimate it - a multirotor estimates no wind unless ArduPilot's drag-based wind estimation
is set up - which is not the same as calm air. Under the tiles, one **Battery** line: the average
current, the mAh used a minute, the distance flown and the farthest point, and the return home if
one was flown.

**By flight mode** (a plane: **By navigation mode**): one row per mode group with its time. A copter
shows **Position error**, **Speed error**, **Height error** and **Climb error**, each as a typical
figure and the largest; a plane shows **Off the line** and **Bank error**. Amber chips mark what to
look at: **Oscillates, every N s**, **Out of thrust**, **At minimum thrust**, **At the lean limit**,
and on a plane **Weaves, every N s** and **At the bank limit**.

**Checks**, each **OK**, **Check** or **Not in this log** (with what to fly, or what the log lacks),
the flagged ones first:

| Check | What it compares |
|---|---|
| **Loiter speed**, **Mission speed**, **Return home speed**, **Climb speed**, **Descent speed** | the setting against what the aircraft reached when it was asked for it |
| **Loiter acceleration**, **Mission acceleration** | the same for the acceleration |
| **Height hold throttle gains** | the height hold gains against ArduPilot's starting point for the aircraft's hover throttle |
| **Height oscillation**, **Position oscillation** | whether the height or the position rings back and forth |
| **Stopping in Loiter** | the fastest stop - more than a meter past the stop point is flagged on **Balanced**; the tuning goal moves the line from 2 m at **Range** to 0.5 m at **Locked-in** |
| **Stopping distance in Loiter** | how far and how long the Loiter brake settings take to stop the aircraft from the fastest it flew in Loiter, and from its Loiter top speed - a reading; the aircraft lags a little behind it, so leave more room ahead |
| **Braking against the airframe** | whether this airframe leans fast enough to follow the Loiter brake as it builds up - flagged when it falls behind every stop from the start; also the Loiter and mission accelerations against what the aircraft reached, a reading, since ArduPilot gives no figures for them by airframe size |
| **Thrust**, **Lean** | time out of thrust or at minimum thrust, time asking for more lean than allowed |
| **Return home against the reserve**, **Return home height** | a return home from the farthest point, priced at this flight's current, against the low-battery reserve in mAh on **Safety > Battery failsafe**, and the climb to the return home height first |
| **Weaving**, **Back on track after a waypoint**, **Bank limit** (a plane) | whether it weaves across its line, how soon after a waypoint it is back within 3 m of its new line on **Balanced** (6 m at **Range**, 2 m at **Precise** and **Locked-in**) against the navigation period, and time navigation asked for the full bank |

The speed, return home and battery lines are settings, not tuning: they say what the aircraft can
do and what it is set to do. A speed the aircraft could not reach while it sat at its lean limit
means the setting asks for more than the airframe gives - lower it, or lighten the aircraft. The
thrust and lean figures read the same way: out of thrust at the top means the climb or the lean
asked for more than the motors give.

The height hold, the Loiter stop and the plane's settling after a waypoint are judged for the
[tuning goal](tuning-flight.md#tuning-flight--the-tuning-goal); on any other step than **Balanced** the panel says so under its
heading, for example **Judged for the Range goal.**

**Suggested changes** appear only where the rule is ArduPilot's own or the aircraft measured a
limit. Each row shows the setting under the name this flight controller uses, **Now**,
**Suggested** and **Stage**, in the flight controller's own units; **The flight controller already
holds this value.** means there is nothing to change. The panel suggests:

- a **speed or climb** setting lowered to what the aircraft reached, when it was asked for that
  setting for a while and hit its lean limit or ran out of thrust while it was. A shortfall on the
  way home in RTL is only a reading - it never lowers the waypoint speed;
- the **height hold throttle gains** at ArduPilot's starting point, when they are well off it and
  the aircraft clearly does not hold its height. A hold between good and poor, or a log with too
  little Loiter or AltHold flight to tell, suggests nothing; on a traditional helicopter the line is
  not checked, since the starting point is for multirotors;
- the **height hold and climb rate gains halved**, ArduPilot's advice when the height oscillates;
- on a plane, the **navigation period raised by 1** when the plane weaves across its line.
  ArduPilot's advice is 1 or 2; the panel takes the smaller step - fly again and raise it once more
  if it still weaves. At 60, the largest the flight controller takes, the check still flags the weave
  but suggests nothing.

A suggested gain always stays inside the range the flight controller's firmware allows for it: a
gain the rule would take under its lowest value is suggested at that lowest value, and a gain already
there is not suggested at all.

Everything else only reads: the accelerations, the stop and the stopping distance, the braking
against the airframe (when it is flagged, lower the Loiter brake jerk or check the attitude
acceleration limits), a position that oscillates, the thrust and lean times, the return home, and
on a plane the bank limit and the turns. **Back on track after a waypoint** is a reading only: if
the turns look too slow to you, ArduPilot's advice is to lower the navigation period by 5, but that
is your call: a plane is meant to settle on its new line in about its period. Change those by hand on the **Navigation** card, a small step at a time.

**The height hold rule is where tuning starts, not where it must end.** An aircraft whose height
holds well on gains far from the rule keeps them: the **Height hold throttle gains** line then says
so and nothing is suggested. Heavy airframes often sit there - a 32-inch heavy multirotor runs about
twice the starting point and holds its height within about 0.1 m.

Stage is off, with the reason, when the log is not from the connected aircraft, as for every other
panel that stages from a log.

<a id="tuning-flight--the-navigation-card"></a>

#### The Navigation card

**FC setup > Tuning > Navigation**, a sub-tab of its own, holds the settings the panel checks, grouped the way you set them: **Position hold
(Loiter)**, **Height hold and climb**, **Missions** and **Return home and landing**; on a plane,
**Path following** - the navigation period, damping and crosstrack gain, the waypoint and loiter
radius, and the return home height. Each row shows the name this flight controller uses: ArduPilot renamed and
rescaled most of these in 4.7, and the card follows whichever the firmware lists.

Under the settings, with a log open in the viewer, **From** the log's name, each flagged check as
one line, or **Nothing to check in the navigation of this log.**, and **Open the navigation result**
to jump to the panel. The lines are judged for the tuning goal, as in the panel, with the same
**Judged for** line when it is not **Balanced**. A log from another aircraft says so. Without a log, **Open Logs**.

<a id="tuning-flight--change-with-a-preview"></a>

### Change with a preview

<a id="tuning-flight--the-filter-preview"></a>

#### The filter preview

On **FC setup > Tuning > Gains**, in the **Yaw and filters** card under the harmonic notch, **Filter preview** shows what
a filter change would do before you write it. It needs a log open in the viewer with gyro data from
before the filters - the prepared tuning flight logs it.

- The chart: **Log, before the filters** - the gyro noise the flight measured - and that noise run
  through the flight controller's filters **Now** (dashed) and through the **Staged** ones (solid),
  with the notches drawn as bands.
- **Delay the filters add**, at three frequencies around where the aircraft responds - 20, 30 and
  40 Hz on a small quad, lower on a bigger airframe (4, 6 and 8 Hz on a heavy) - Now against Staged
  in milliseconds: **Gyro filters**, and on a copter the **D term** filters too. A figure that grows
  is amber, one that shrinks green.

Stage a change on the same card - the gyro filter (under **Advanced**), a notch - and the preview
follows at once. More
filtering removes more noise and adds delay, which the aircraft feels as a softer, later response;
the preview shows both sides before anything reaches the flight controller.

<a id="tuning-flight--the-tuning-knob"></a>

#### The tuning knob

**FC setup > Tuning > Tuning > Tuning knob** puts one gain on a knob or slider of your transmitter, so you
can find its value by feel in flight. It shows when the flight controller supports it.

**On a copter:**

1. Pick **What the knob changes**, and set **Knob at its minimum** and **Knob at its maximum**.
2. **Knob channel** (admin role to change): put the knob on a free channel with a knob or slider,
   then **Write to FC**. On older firmware the knob is always channel 6, and the card says so.
3. The bar shows the value the knob gives now; turn the knob on the ground and watch it move.
4. **The flight controller never saves what the knob sets**: at the next reboot the gain goes back
   to its saved value. After landing, **Keep this value** stages the value the knob gives now, then
   **Write to FC**.

Newer firmware has a **Second knob** with its own channel.

**On a plane**, the card lists the flight controller's knob settings and how to save with the
**selector switch**: hold it high for 5 seconds to save, flick it low briefly to re-center the knob
on the value it gives now, and hold it low for 2 to 5 seconds to move on to the next gain of a set.
The card says whether a flight mode change puts back what was not saved yet.

<a id="tuning-flight--turn-tuning-logging-off"></a>

### Turn tuning logging off

The **Tuning flight** card says, under the four steps, which logging the flight controller holds -
what it holds now, never what is only staged:

- **Tuning logging is on** - with what it adds; the log fills several times faster.
- **Tuning logging is partly on** - some of what Prepare added is still on: for example the log
  setting is back as it was, but the gyro noise log still runs.
- **Tuning logging is off** - the flight controller logs as usual.
- **Logs what tuning needs** - Prepare did not run from this tablet, but the flight controller's own
  log settings already record everything the analyses read. There is nothing to turn off from here,
  except by going back to the firmware defaults.

While a change to the log settings is staged, the line also says **Staged - Write to FC turns it
on.** or **Staged - Write to FC turns it off.**: the state follows only once the flight controller
holds the change.

When the tuning is done, press **Turn tuning logging off** (admin role), then **Write to FC**. It
takes away only what Prepare added and keeps any log type turned on since, or staged before you
pressed **Prepare**; a **Now** / **New** table
shows what it changes. Once the flight's log has been read (step 3 has its check) it is the card's
main button, under the state line; before that it waits at the foot of the card - always there. A
pilot sees the state line and a sentence saying that an admin can turn tuning logging off.

What it puts back comes from:

- **The values from before Prepare, kept on this tablet.** - when Prepare ran on this tablet;
- **The flight controller's defaults.** - when it ran elsewhere, or the tablet's data was cleared;
- settings neither can give back are listed by name: set them by hand on **All parameters**.

**Logging is already as it was.** means there is nothing to turn off. Without values from before,
the button reads **Turn tuning logging off - back to the firmware defaults**, with a caution: it also
replaces any log setting made by hand. That button is never the card's main action - it stays at the
foot of the card.

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

### Related guides

- [Flight controller setup](fc-parameters.md#fc-parameters) - the page, its tabs, the Tuning and Logs
  tabs, **Write to FC** and the notch helper.
- [The fly view](fly-view.md#fly-view) - the fly view, its toolbar and recordings.
- [Flight controller, MAVLink and telemetry](troubleshooting-flight-controller.md#troubleshooting-flight-controller) - when the log
  viewer or the flight controller does not do what you expect.
