> **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-setup"></a>

# Setting up a Betaflight flight controller

**Summary:** Take a freshly flashed Betaflight 2026.6 flight controller to "arms, with Sokil carrying telemetry" from FC setup over USB, without Betaflight Configurator - ports and the Sokil camera's port, the receiver, modes, failsafe, battery, motors and the motor test, servos, sensors and GPS, saving a backup and loading a settings file in the CLI tab, and a checklist before the first arm.

**Audience:** field integrators

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

This guide takes a freshly flashed **Betaflight 2026.6** flight controller to **arms, with Sokil
carrying telemetry** (and the sticks too, where you choose that) from the **Flight controller setup**
page, over USB, without Betaflight Configurator. Tuning and the Blackbox logs are a second job, in
[Tuning a Betaflight flight controller](betaflight-tuning.md#betaflight-tuning).

<a id="betaflight-setup--connect-and-what-you-see"></a>

### Connect and what you see

Plug the flight controller into the **pilot's own computer** by USB and open the Flight controller
setup page in **Chrome or Edge**; the browser asks once which USB device to use. The page listens for
ArduPilot first and then asks for Betaflight, so for a few seconds it says **Looking for the flight
controller on this port...** - that is not an error. After the page has
read the flight controller, its tabs appear: **Summary**, **Ports**,
**Configuration**, **Receiver**, **Power**, **Motors**, **Tuning**, **CLI** and **Firmware**. Four of them
hold sub-tabs under the row: **Configuration** (**Configuration**, **OSD**, **Video transmitter**,
**LED strip**), **Receiver** (**Receiver**, **Modes**, **Adjustments**, **Failsafe**), **Motors** (**Motors**,
**Servos**) and **Tuning** (**PID**, **Rates**, **Filters**, **Blackbox**, **From a log**). Below, a sub-tab
is written as **Receiver > Modes**.

**The editors are for Betaflight 2026.6 only** - Sokil's build and the stock release alike. Any
other firmware (an older or newer Betaflight, INAV) gets only **Summary**, the **CLI** and
**Firmware**, and the page says why. To bring such a flight controller to 2026.6, flash it from the
**Firmware** tab - see [Sokil's Betaflight and ArduPilot builds](fc-firmware.md#fc-firmware--flash-betaflight-from-fc-setup),
which also says which of your settings are carried over to the new release.

The header names the board and its firmware. A flight controller that runs a Sokil Betaflight release
also shows that release as the update server lists it, for example **Sokil release
2026.6.1_20261007_rebuild (Beta)**; a build no Sokil release carries shows none. As on the ArduPilot
page, the browser remembers the list, so the name still shows without internet once it has been seen
online.

How a change reaches the flight controller:

- A value you change is **staged**: marked on its row and counted on its tab (and on its sub-tab, when it
  has one). Nothing is sent yet.
- **Write to FC** (the bar at the bottom, with the count) sends everything staged on every tab at
  once and saves it. When any staged value acts only after a restart the button reads **Write and
  restart FC** and the flight controller restarts by itself; the page reads it again afterwards.
  Before anything is sent it asks once and lists every setting it writes, the old value and the new
  one - including any setting a suggestion staged alongside the one it names. What a tab writes as a whole
  (ports, modes, the mixer, servos) is named by its tab after **Also written**. If something more is
  staged before the Write starts, it asks again with the new list.
- **Discard changes** drops everything staged, **Refresh** reads the flight controller again, and
  **Restart FC** restarts it on request (your unwritten changes stay on the page). The **Written and
  saved** banner goes away with the next action: Refresh, another tab or a new change.
- With changes staged, leaving the page, switching the device in the selector or changing the role
  asks first, **Unsaved settings**. Switching tabs does not ask - it is the same page and the same
  changes. **Save** runs **Write to FC** with its question and its list and leaves only when nothing
  is left staged, **Discard** drops the changes and leaves, **Stay** keeps you on the page. While a
  Write is running the page is not left: a notice says to wait until it has finished. Closing or reloading the browser tab gets the browser's own
  warning instead.
- **Nothing is written to an armed flight controller**, and no calibration or motor test runs: the
  page shows **This aircraft is armed.** and the button says **Disarm to write.**
- A flight controller whose settings are **locked** is read but never written
  (**This flight controller's settings are locked.**). Whoever locked it unlocks it in the **CLI**
  tab: `set locked = OFF`, then `save`.
- When the flight controller refuses a value, nothing is saved and it is restarted to drop the part
  it had taken; your changes stay on the page so you can correct the one named and write again.

<a id="betaflight-setup--summary"></a>

### Summary

Start here. The **Arming** card says whether the flight controller would arm right now - **Ready to
arm.**, **Will not arm. Reasons: n** or **Armed.** - and lists every reason in plain words, read
twice a second: no gyro found, failsafe active, **No valid signal from the receiver.**, throttle not
at minimum, **The accelerometer is not calibrated. Calibrate it below.**, a sensor calibration
running, the CLI open, **A configurator is connected over MSP - this page** (it clears when you
disconnect) and the rest. A new setup will show several of these until the steps below are done.
**Open Failsafe** on the card takes you to **Receiver > Failsafe**.

The camera-policy notice here links to **Receiver > Failsafe** to review differing AUX fallback
settings or find out why the camera policy cannot be checked.

**Accelerometer calibration** teaches the flight controller what level is. It is needed once after
a flash or a reset: put the craft on a level surface, keep it still, press **Calibrate**. It takes
about two seconds and the flight controller saves the result itself. Each of the other tabs adds its
own line here once you have opened it.

**Reset settings...** puts every setting back to the firmware's defaults. The page first reads the
settings and saves them to your downloads as a backup file, then asks you to confirm (**Save a backup
and reset**), then resets and restarts the flight controller. If the settings cannot be read nothing
is reset. Afterwards calibrate the accelerometer again and check the receiver. The reset also clears the port the Sokil camera's MAVLink runs on, so the camera has no link to the flight controller until you set the port again on **Firmware > Sokil port**; the page names the port the backup had. It is disabled on an
armed flight controller.

The rest of Summary is what the flight controller reads right now. **Live sensors** draws the gyro,
accelerometer and compass traces for the last ten seconds, the **Attitude** and the **Altitude**: tilt
the craft by hand and the traces move. It is the quickest way to see that a sensor reads and that the
board alignment is right. Under the numbers the **Attitude** is also a small 3D model of the craft, seen
from behind and above: it follows the board, so a wrong sign or axis shows at once. **Compass calibration** and **GPS position** are here too (below).

**Compass calibration > Calibrate compass**: confirm, then within 15 seconds start turning the craft
through every axis - nose up, nose down, on each side - and keep turning for the rest of the **about 45
seconds** the page counts down. Keep the flight controller disarmed and away from metal and motors.
The flight controller **saves the result by itself** when it ends and the page shows the offsets
before and after; if you did not start turning in time it stores nothing.

**GPS position** appears once the GPS is on (see Configuration): the **Fix**, **Satellites**, position
and speed, the position on a small map once there is a fix, and a table of the satellites with the
signal of each (dB-Hz; green bars are the ones used in the position, strongest first). Only a u-blox
receiver reports the table. Indoors there is usually no fix.

<a id="betaflight-setup--ports"></a>

### Ports

**Ports > Serial ports** is one row per UART: **MSP**, **Serial receiver**, **Telemetry**,
**Sensor** and **Peripheral** (GPS, Blackbox, ESC sensor, VTX control and the like), each with a
baud rate where the function has one. The port the page is connected through is the USB cable and
always keeps MSP. **The Sokil camera's port is marked** **Sokil camera**: the one that carries
MAVLink telemetry (and the radio control when that is chosen) to the camera. If no port does yet,
the tab says so and offers **Open Firmware**: choosing the Sokil port is done there, in the
**Sokil port** card, with its Baudrate - see the firmware guide linked above. Changing the marked
port's row here is allowed, with a warning that the camera will lose the flight controller.

Serial ports are opened when the flight controller starts, so every change here restarts it.

**What the page refuses.** Betaflight, given a port setup it cannot use, silently resets **every**
port to its defaults - including the camera's. So an invalid combination is refused **before
anything is written**, and drawn on its row: the USB port must keep MSP, one to three ports may have
MSP, VTX control over MSP must share its port with MSP or a serial receiver, and functions that
cannot share a UART cannot be put on one. Two cases are warnings: MSP and MAVLink on one port (the
camera sees no flight controller while it is disarmed - use separate ports) and a second MAVLink
port (the firmware uses only the first). The same check runs when you change **only the receiver
protocol** on **Receiver > Receiver**: the page checks it against the ports as they are and refuses a
protocol those ports cannot share, naming the problem.

<a id="betaflight-setup--configuration"></a>

### Configuration

<a id="betaflight-setup--configuration-2"></a>

#### Configuration

**Features** switches what the flight controller does besides flying: **Airmode** (on for almost
every multirotor), **Anti gravity**, **GPS** (reads a GPS on the port you gave it on Ports),
**Telemetry** (required for MAVLink telemetry too; a port with telemetry on it stays
silent while it is off - the Ports tab warns), **ESC sensor**, **Reversible motors (3D)** (never on
a normal build; it blocks the motor test) and others. The receiver kind is on **Receiver > Receiver**.
**Board alignment** is for a flight controller not mounted flat with its arrow forward - set Roll,
Pitch and Yaw, then check on Summary that the craft reads level. **Arming** holds **Largest tilt to
arm**, **Disarm when idle after** and **Calibrate the gyro on first arm**; **Accelerometer trim**
corrects a flight controller that sits slightly off level in the frame (Pitch and Roll, small steps,
no restart); **Names** the craft and
pilot name; **Beeper** the buzzer. A change here acts after the restart that Write does.

**Sensor hardware** picks the chip per sensor (leave on AUTO unless a board has two chips or one is
misdetected) and **Compass alignment** the compass orientation and your **Magnetic declination**.
The **GPS** card holds the **Protocol**, **Correction service (SBAS)**, **Update rate** and the rest.
With the GPS feature off it says **GPS is off** and has a **Turn GPS on** button: press it, then write,
and the settings appear here and the position on Summary. Most GPS settings restart the flight
controller.

<a id="betaflight-setup--osd"></a>

#### OSD

**Configuration > OSD** sets what the goggles' screen shows. **Screen layout** is a picture of that screen in
characters: PAL 30 by 16, NTSC 30 by 13, an HD screen by its canvas size (53 by 20 by default); with the
video system on **Auto** it is drawn as PAL. Drag an element where you want it, or select it and move it
with the arrow keys (**Shift** moves five cells). The list on the right has a search; tick an element to
show it in the OSD profile being edited (**Profile 1** to **3**, on firmware that has OSD profiles).

**Video and display** holds the **OSD** switch, **Video system**, **Display device**, **HD screen
columns** and **rows** (HD only), **Units**, **OSD profile shown** and the profile names. **Timers** sets
the source, the precision and **Blink after** N minutes (0 never, at most 127). **Alarms**, **Warnings**
and **Post-flight statistics** choose what blinks, warns and is listed after disarming. **Font** appears
for an analog MAX7456 OSD only: **Upload a font file** (a `.mcm`) and the flight controller restarts to
keep it; it is refused while changes are staged. With DisplayPort, HD goggles or a Sokil camera the font
is set there.

A moved element shows on the goggles after the restart that Write does; so do the positions, profile,
video system, display device and canvas. Units, alarms, timers, warnings and statistics act at once.

<a id="betaflight-setup--video-transmitter"></a>

#### Video transmitter

**Configuration > Video transmitter** controls the transmitter from the flight controller. **Transmitter**
shows what it reports every second: the control (SmartAudio, Tramp, MSP or on-board), its state and
frequency. **Pit mode** is the transmitter's own state: it acts at once and nothing is staged. **No video
transmitter answers** means no UART has the VTX function yet: give it one on **Ports**.

**Channel and power** picks the band, channel and power level from the table; with no table, set the
frequency. **Power rules** holds **Low power while disarmed** and **Pit mode frequency**. **Band and power
table** has **Load a table file** (the `.json` from Betaflight Configurator or the maker, or the CLI's
`vtxtable` lines), editable frequencies, labels and values, and **Clear the table**. The pick and the
power rules act without a restart; the flight controller uses a new table after the restart that Write
does.

<a id="betaflight-setup--led-strip"></a>

#### LED strip

**Configuration > LED strip** lays out and colors the strip. **Strip layout** is a 16 by 16 grid: click a
free cell to add the next LED. The numbers are the wiring order, so add the LEDs in the order they are
wired from the flight controller's pad. Select an LED to set what it **Shows**, its **Color**,
**Points** (directions) and **Overlays**; **Remove** takes it out, **Remove all LEDs** clears the strip.
Color 0 with **A fixed color** in the top-left cell would end the strip there, so the page refuses it.

**Colors** holds the 16 colors (hue, saturation, brightness). **Mode colors** gives each flight mode
and direction its color, with **State colors** below. **Strip settings** holds the **LED strip**
switch, profile, brightness, beacon, flash with the beeper, rainbow and **Color order**. LED changes
act as soon as they are written; the feature switch and the color order restart the flight controller.

<a id="betaflight-setup--receiver"></a>

### Receiver

<a id="betaflight-setup--receiver-2"></a>

#### Receiver

**Receiver > Receiver** picks the **Receiver kind**: **Serial** (a receiver on a UART - SBUS, CRSF,
IBUS and others), **PPM**, **PWM**, **MSP** or **SPI**. Only one can be used, and changing it
restarts the flight controller; with none selected the controller has no stick input and the tab says
so.

For **Serial**, set the **Protocol** to what the receiver sends, and **Inverted signal** and
**Half duplex** only if the receiver needs them. The serial port itself is on **Ports**: **Serial
receiver** on exactly one UART.

**RC over the camera's telemetry port.** On Sokil's build and on stock Betaflight 2025.12 or later
that includes MAVLink Serial RX, set the **Protocol** to **MAVLINK**: the sticks then arrive as
MAVLink from the camera on the same UART that carries the telemetry, so no separate receiver is
needed. The tab reminds you that this port is set on Ports (**Sokil camera**, with the radio control
noted on its row). Older firmware, or a build without MAVLink Serial RX, needs a real receiver - see
[Flight controller connection](flight-controller.md#flight-controller) for the shapes.

**Channels** shows what the receiver sends right now, in microseconds: move a stick to see which
channel it is on. On a Sokil build a channel that Sokil is overriding shows **Overridden: receiver
..., flying ...** - the stick as the receiver sent it, and the value the aircraft flies on. A
flight controller that does not report the original shows only the value in force.

**Channel map** says which receiver channel carries which stick - most radios send roll, pitch,
throttle, yaw (**AETR**), some throttle first (**TAER**); the map must be a permutation of the
eight first channels or the page refuses it. **Signal strength** takes the RSSI from a channel, or
estimates it from lost frames. **Sticks** holds the center, the end points and the deadbands (the
defaults suit most radios); **Stick smoothing** is best left on automatic.

<a id="betaflight-setup--modes"></a>

#### Modes

**Receiver > Modes** says which AUX range switches which mode. **Set the arm switch first**: the **ARM** mode
gives the flight controller an AUX channel and a range, and it arms only while the channel is inside
it. With no range set for ARM the tab says **No range is set for ARM** and the flight controller
cannot be armed from a switch. Each mode has one or more ranges: pick the **AUX channel**, set the
**Range start, µs** and **Range end, µs** (a live marker shows where the channel sits), add more
ranges with **Add range**, choose how they combine (**OR** or **AND**), or make a mode follow another
(**Follows another mode**). **Add a mode** offers the modes this firmware has that have no range
yet: **Angle**, **Horizon**, **Airmode**, **Pre-arm**, **Blackbox logging**, **GPS rescue**,
**Failsafe** and so on.

A range must lie between 900 and 2100 µs and start below its end; ARM cannot follow another mode, and
a mode cannot follow one that follows another or itself - the page refuses what the firmware would
delete. Sokil's own modes - **GPS disable**, **Detonator arm** and **Detonator** - are offered only on
a flight controller whose firmware has them. Changes here act at once; no restart.

<a id="betaflight-setup--adjustments"></a>

#### Adjustments

**Receiver > Adjustments** tunes a value in flight from a knob or switch. While the AUX channel under
**AUX channel that enables it** is inside its range, the channel under **AUX channel that changes it**
changes the value under **What it adjusts** (a gain, a rate, a profile). **Add adjustment** adds one;
a marker says **Active now** while its range is on. Experts also see **Center** and **Scale**. Changes
act at once; no restart.

A receiver on the board's SPI bus (ExpressLRS) loses its binding when the firmware is flashed:
**Receiver > Receiver > Bind receiver** puts it into bind without restarting the flight controller;
put the transmitter or link into bind first.

<a id="betaflight-setup--failsafe"></a>

#### Failsafe

When a Betaflight flight controller is connected by USB and the station's control camera receives
RC over MAVLink, this tab also checks its channel fallback settings against that camera's RC action
bindings. The warning names the camera and lists each differing channel, its current setting, the
wanted setting and the reason. It checks only bound AUX channels, never the four stick channels;
reversed bindings are accounted for. Unbound channels are left alone.

It also checks how often the flight controller sends that camera its RC report
(`mavlink_rc_chan_rate`). The camera reads its switches and gimbal sticks from that report, and
Betaflight sends it at its own rate whatever the camera asks for - 1 Hz by default, so a switch or
gimbal stick can react up to a second late. Below 10 Hz the warning lists it as a difference and the
policy sets 10; a faster rate is left alone. A build without the setting is not checked.

**Apply camera policy** asks for confirmation, writes only the listed differences, saves them to
the flight controller and reads them back. Nothing is applied automatically. If the control camera
is unknown or its settings cannot be read, the page says it cannot check; this does not mean the
settings match. The comparison does not apply when the camera uses another RC input, or to ArduPilot.

**Receiver > Failsafe** is what the aircraft does when the receiver goes silent, in two stages.

**Stage 1 - the first moment of signal loss.** The aircraft waits out the **Guard time**, with
every channel set to its own fallback. If the link returns inside it, nothing else happens.
Per channel (**Roll**, **Pitch**, **Yaw**, **Throttle**, each **AUX**) choose **Automatic**,
**Hold last value** or **Set a value**; values are kept in steps of 25 µs.

**The guard time's unit depends on the firmware, and the page says which.** On Sokil's Betaflight
build the field is in **seconds** (unit **s**); on a stock Betaflight build it is in **tenths of a
second** (unit **x 0.1 s**), and the page writes the time in words beside it (**= 1.5 s**). Read the
unit beside the field before you type, and use the "= ... s" reading to check: a value that is right
on one build is ten times too long or too short on the other. It is the same setting in the CLI,
failsafe_delay.

**Stage 2 - what it does next.** If the link is still lost when the guard time ends, the flight
controller carries out the **Procedure**: **Land** (descends on the **Landing throttle** and stops the
motors when the **Landing time** is over), **Drop** (stops the motors at once and the aircraft falls -
the default) or **GPS rescue** (flies home on GPS and lands; needs the GPS feature on and a fix,
without them the flight controller drops). The GPS rescue cards (**the way home**, **speed and
descent**, **checks**) set its altitude, speeds and when it starts or gives up. **Failsafe switch**
chooses what the Failsafe mode's switch does: start stage 1, stop the motors at once, or go straight
to stage 2. A procedure this page has no label for is shown by its firmware name with a warning to
understand it before using it. Changes here act at once; no restart.

<a id="betaflight-setup--power"></a>

### Power

**Power** shows **Battery now** (voltage, cells, current, used so far, and whether the
battery is fine, low or critical), updated twice a second. On USB power alone it reads **No battery
detected**, which is normal: plug in a flight battery to see values.

Set **Battery** to the pack you fly: **Pack capacity**, **Max cell voltage**, **Full cell voltage**,
**Warning cell voltage**, **Min cell voltage**, the **Cell count** (0 counts them itself) and the
alerts. **Voltage sensor** and **Current sensor** choose where the readings come from (**Voltage
divider on the board**, **Estimated from the throttle**, **From the ESCs**...); with no voltage
sensor set, battery warnings do not work.

**Calibrating the voltage.** Plug in a battery, measure the pack with a multimeter, type what it
shows in **The multimeter shows** next to **The flight controller reads**, and press **Set Voltage
scale = ...**: the page works out the **Voltage scale** that makes the flight controller read the
same, and stages it. It refuses without a battery or when the controller reads under 1 V. The
**Current scale** is calibrated the same way against a clamp meter with a steady load and the
propellers off (it refuses under 0.5 A). Changing the voltage or current source acts after the
restart.

<a id="betaflight-setup--motors"></a>

### Motors

<a id="betaflight-setup--motors-2"></a>

#### Motors

**Motors > Mixer and motor direction** picks the craft's layout with **Mixer** - most multirotors
are **Quad X** - and **Motors turn the other way (props out)** for propellers fitted "props out"
(the pictures follow this switch). Changing the mixer restarts the flight controller. Turning **one**
motor the other way is done in the motor test below (tap the motor, then set its direction) with a
DShot protocol; swapping any two of that motor's three wires does the same.

**ESC protocol** shows only the rows that matter for the chosen **ESC protocol**: DShot is the usual
choice, and the ESCs must understand it. **Bidirectional DShot** and **Motor poles** are what the
RPM filter on the Tuning tab needs (14 poles on most 5-inch motors); **Idle speed** is how fast the
motors turn when armed at zero throttle. Every change here restarts the flight controller.

<a id="betaflight-setup--the-motor-test"></a>

##### The motor test

> **Propellers OFF.** Take every propeller off the motors before you start, and hold the craft
> down. The motors spin with the full power of the battery behind them.
>
> **If the USB cable comes out while a motor turns, the flight controller keeps that motor turning
> until the battery is disconnected.** The page cannot stop it then. Keep a hand on the battery
> plug for the whole test.

The **Motor test** card spins one motor, or all of them, to check which motor is which and which way
it turns, and puts right a motor on the wrong output or turning the wrong way. Press **Start motor
test**, confirm that every propeller is off, the craft is held down and nobody is near it, and **slide
to start**. Then:

- **Tap a motor on the drawing** of the craft (seen from above, front at the top) with the mouse, a
  finger, or Space or Enter: it **spins for a second and stops by itself**. Hold it down to keep it
  turning; tap a turning motor to stop it. **All motors** spins them together the same way. A mixer
  the page cannot draw (anything but a quad X) shows numbered buttons instead.
- The motor you tapped is named beside the drawing - **Motor 2, front right** - with the way it
  **should** turn, seen from above, and **Spin again**.
- **Turns the wrong way?** With a DShot **ESC protocol** press **Set reversed** (or **Set normal**)
  right there: the ESC is told the direction and saves it, and the motor spins again to show the
  result. The page cannot read which direction the ESC holds now, so it offers both. With any other
  protocol there is no button: swap any two of the motor's three wires, or change the direction in
  **ESC settings**.
- **Check motor order** finds motors plugged into the wrong outputs. The page spins the motors one
  after another, and each time you tap **the place on the drawing where a motor really turned**
  (**Spin it again** repeats the spin; **Start over** and **Cancel** are there too). At the end it
  either says **Every motor turned in its own place. Nothing to change.**, or how many motors are on
  the wrong outputs with **Save and restart**: that stores the new order
  and restarts the flight controller. Start the test again afterwards to check it.
- **Throttle** starts low; **Allow more than 15 %** raises the limit, with a warning that a motor
  without a propeller can spin up fast.
- **The test ends and the motors are stopped** when you press **End test**, leave the tab, switch to
  another window or tab, the browser hides the page, or the flight controller reports itself armed.
  The tab says why. If the page cannot confirm that the motors stopped it says **Disconnect the
  battery now.**
- It is **not offered** on an armed flight controller, with unwritten changes on the page (write or
  discard them first), while the flight controller is restarting or locked, or with **Reversible
  motors (3D)** on - the test would drive them backwards; turn 3D off on Configuration and write it.
  A mixer with no motors has nothing to test.

<a id="betaflight-setup--esc-settings-and-motor-direction"></a>

##### ESC settings and motor direction

One more card sits in the right column of **Motors > Motors**, under the motor test. It needs the
flight controller on this computer's USB, a battery plugged in and **the propellers off**.

**ESC settings** reads and changes the settings stored in the ESCs themselves. It works with
**BLHeli_S**, **Bluejay** and **AM32** ESCs. It does not work with BLHeli_32, KISS or Atmel ESCs, and
it never flashes ESC firmware.

1. Press **Connect to ESCs**. The flight controller stops everything else and passes the USB port
   through to the ESCs; the card says so. Each ESC it reads shows as a chip with its firmware and version.
2. Pick an ESC. Its settings are listed with the firmware's default beside each one. Change what you
   need. An ESC with an older or pre-release settings layout is shown **read-only**, with the reason.
3. Press **Write to ESC n**. The settings are written, then read back and compared, and the card
   says **ESC n: written and read back.** If the read-back differs, the card asks whether to write back
   the settings the ESC had before; **Write back** returns the ESC to how it was.
4. **Write to all matching** writes the same changes to every ESC with the same firmware and settings
   layout, one after the other, and asks first. Any other ESC is skipped, and the card says why.
   **Download settings image** saves the selected ESC's settings to a file.
5. Press **Disconnect** when done. The flight controller has its motors back. Leaving the tab
   disconnects too, and so does two minutes without use.

While connected the flight controller runs nothing else: the motor test waits, and opening another tab
disconnects. The
card is **not offered** on an armed flight controller, or with unwritten changes on the page (write or
discard them first). If the flight controller does not confirm that it left passthrough, unplug USB and
the battery and plug them back in.

**A motor's direction** with a DShot **ESC protocol** is set in [the motor test](betaflight-setup.md#betaflight-setup--the-motor-test): tap
the motor, then **Set normal** or **Set reversed**. No passthrough is needed. The same setting is also
among the ESC's own settings on this card.

<a id="betaflight-setup--servos"></a>

#### Servos

**Motors > Servos** lists the servo outputs: each output's **Min**, **Middle**, **Max**, **Rate**, **Reversed** and
the channel it is **Driven by**, with a bar showing the range and where the output is now. An output
moves only when the mixer or a feature on Configuration uses it (a tricopter's tail, a wing, a
gimbal tilt, channel forwarding). **The page never moves a servo**: it only shows where the output
is. **Output signal** (pulse rate and center) and **Special outputs** (the tail servo, forwarded
channels, gimbal mode) follow. A build without servo outputs says so.
Changes here restart the flight controller.

<a id="betaflight-setup--cli"></a>

### CLI

The **CLI** tab is the flight controller's own command line, for what no tab covers, with the backup
and load buttons under it. The terminal is always drawn: press **Open the CLI** in it, type `help`
for the list; **Tab** completes a command, and a setting name after `get` or `set` once the terminal has printed it (for
example from `get dyn`). **Leaving it restarts the flight controller** (**Close and restart FC**): whatever you
set there and did not `save` is lost, on purpose, so that nothing typed in the terminal is saved later
by a Write on another tab. A `save` typed there restarts the flight controller by itself. The terminal
does not open on an armed flight controller. **Copy** puts what the terminal printed on the clipboard
and **Clear** empties it. A notice above the terminal can be dismissed.

**Save backup** is one click. The page reads the settings (`diff all`) - **Reading the settings from
the flight controller...** - and the flight controller restarts when the read is done, as it does
whenever its command line is left. The file is then saved by itself to your browser's downloads, and a
line names it; **Save again...** opens a save dialog for the same text. If the CLI is open the page
asks to close it first.

**Load from file** puts the settings from a file saved with `diff all` or `dump` onto this flight
controller. Pick the file; a popup says what it is - **From** (the board and the Betaflight version),
**Lines**, **Reset** (whether it starts with a reset to defaults) and **Save** (whether it saves) -
and offers two ways to load it:

- **Review and load** (**Recommended**, the default) accepts files from **Betaflight 4.6 or later**.
  Older files are refused. Every line is shown by area before anything is sent: a setting this release renamed is
  sent under its new name, one it no longer has is held back, and a line the flight controller refuses
  is listed afterwards. It **adds** to the settings the flight controller has and **does not reset**
  them: settings the file does not name are left as they are, and the review warns you when the file
  asks for a reset. A file from another board is refused, and nothing is saved until you confirm. The
  flight controller itself must run Betaflight 2026.6.
- **Run as written** is the exact restore. It sends the file to the flight controller line by line,
  exactly as written: blank lines and `#` comments are skipped, every other line is sent as it is - a
  reset and a save included, nothing checked, changed or reordered - and the next one goes only after
  the flight controller has answered the one before. What it prints is shown in the terminal. **Stop**
  ends the run. The lines the flight controller refuses are listed when the run ends, and the run goes
  on after them. A line that restarts the flight controller (`save`, `exit`, a bare `defaults`) ends the
  run: the page says which line it was and how many lines after it were not sent, and then finds the
  flight controller again. A line the port refuses to take stops the run and is named; it is not counted
  as sent. When the file resets to defaults, saves, or holds motor, bl, dfu, flash_erase, msc or
  serialpassthrough, you are asked once before it starts.

Both buttons are unavailable while changes are staged on other tabs; write or discard them first.
What the review carries over, what it never sends and how it behaves on a flash is described in
[Sokil's Betaflight and ArduPilot builds](fc-firmware.md#fc-firmware--flash-betaflight-from-fc-setup).

<a id="betaflight-setup--before-the-first-arm"></a>

### Before the first arm

1. **Summary** reads **Ready to arm.** - or every reason it lists is one you understand.
2. **Ports**: exactly one port is marked **Sokil camera**, the receiver (if a real one) is on a
   **Serial receiver** port, and no row shows a refusal.
3. **Receiver > Receiver**: the kind and the **Protocol** match what is wired (or **MAVLINK** where Sokil
   carries the sticks); move each stick and check the right channel moves, in the right direction
   and range.
4. **Receiver > Modes**: **ARM** has a range on a switch, and the switch arms and disarms when flipped with the
   propellers off.
5. **Receiver > Failsafe**: the **Guard time**'s unit was read beside the field, and the **Procedure** is the one
   you want. Switch the radio off on the bench with the propellers off and see what the page and the
   flight controller do.
6. **Power**: with a battery plugged in the voltage matches a multimeter.
7. **Motors > Motors**: with the propellers off, the **Motor test** showed every motor is the right one and
   turns the right way (a motor that turns the wrong way: tap it and **Set reversed**; a motor in the wrong place: **Check motor order**).
8. **Summary**: tilting the craft moves the attitude in **Live sensors** the right way; the
   accelerometer is calibrated here.
9. Everything is written (no staged count left), and the flight controller shows **Disarmed**.

Keep the propellers off for the arm/disarm check. Refit them only when the bench checks
are complete and the aircraft is ready for an actual launch; follow
[Make the first flight](first-flight.md#first-flight--4-make-the-first-flight).

<a id="betaflight-setup--what-these-tabs-do-not-do"></a>

### What these tabs do not do

- **OSD and the video transmitter.** Sokil is the video link and draws the on-screen display, so the
  flight controller's own OSD and VTX control are not set here.
- **The LED strip and presets.** Use the **CLI** tab.
- **ESC firmware flashing.** The **ESC settings** card changes the settings stored in the ESCs, not their
  firmware. Use the ESC vendor's tool to flash.
- **Tuning and Blackbox** are on the Tuning tab (**PID**, **Rates**, **Filters**, **Blackbox**,
  **From a log**), in
  [Tuning a Betaflight flight controller](betaflight-tuning.md#betaflight-tuning).

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

### Related guides

- [Tuning a Betaflight flight controller](betaflight-tuning.md#betaflight-tuning) - PID, rates, filters and
  the Blackbox logs.
- [Sokil's Betaflight and ArduPilot builds](fc-firmware.md#fc-firmware) - which firmware, flashing it
  and carrying the settings over.
- [Flight controller connection](flight-controller.md#flight-controller) - the ports and the receiver in
  detail.
- [Flight controller setup](fc-parameters.md#fc-parameters) - the ArduPilot page, tab by tab.
