Sections
MD

Flight controller connection

Forpilotsfield integrators

Sokil reaches the flight controller over plain UARTs, and every link needs a matching setting on the FC's side. This page is what to set there, per firmware, for each link Sokil can present - the same rows the Flight controller card of the Hardware page (on the station: Hardware) prints against the device in front of you.

SERIALn / UARTn throughout is the FC's own UART number, read off its pinout - not the number on the Sokil board.

Coming from Received camera kit? A WiFi camera kit uses only the MAVLink link: the FC keeps its own ELRS receiver for RC. Read the MAVLink rows of your firmware's section - ArduPilot, Betaflight, INAV or PX4 - and skip the rows marked for RC over MAVLink and the CRSF and SBUS tables. If the Hardware page then paints the port amber, read When the FC does not hear us.

Sokil's emergency radio unbind holds the throttle at full and toggles the arm switch. Check whether your firmware and vehicle block arming at high throttle; ArduPlane and INAV fixed-wing auto-arm are exceptions. Arming safety explains the checks and how to remove the propellers and isolate the motors while keeping the electronics powered.

Link What it carries Sokil side Baud
MAVLink telemetry from FC to ground station, commands back to FC, and the sticks as RC_CHANNELS_OVERRIDE when RC to VTX MAVLink (parameter vtx_crsf_enabled) is on VTX settings > Telemetry > MAVLink: the card switched on (parameter vtx_mavfwd_enabled), Serial port (parameter vtx_mavfwd_serial), Baudrate (parameter vtx_mavfwd_baud) 115200 by default
CRSF into the FC stick and switch frames written into the FC's RC pad Control > RC Wiring > CRSF (ELRS): Serial port (parameter rc_crsf_serial) plus a byte source (an Input such as Receive RC over UDP (parameter rc_crsf_in_addr), or Generate from RC input) Baudrate (parameter rc_crsf_baud) - set it, see below
SBUS into the FC the live channels as an SBUS stream SBUS Output switched on (parameter rc_sbus_enabled), Serial port (parameter rc_sbus_serial), Invert TX line (parameter rc_sbus_invert) (the group is in testing and may not be offered on every station yet; an admin sees it once it is on) fixed by the protocol

MAVLink carries the telemetry and the commands; CRSF and SBUS both drive the FC's RC input directly, so a drone uses one of those, or neither.

Set the CRSF (ELRS) Baudrate (parameter rc_crsf_baud) yourself on a port that drives an FC. Sokil resolves it to 460800 on every board and every role, and that is the speed of a USB handset adapter, not of a wire into a flight controller. The FC's end is fixed - 420000 on Betaflight and INAV, and ArduPilot sets its own (below) - so this end has to match it.

And turn Replace with RX packets (parameter rc_crsf_out_as_rx) on for that port. It tells the output what is on the far end. Frames are re-addressed to the flight controller (0xC8), the way its own receiver sends them - but the bigger half is what it drops: only channels and link statistics go onward, and the radio's own traffic stays behind. That traffic includes a packet-rate proposal which, forwarded to an FC, makes Betaflight and ArduPilot renegotiate their baud and lose the link. Left off, the port is a transparent bridge to a TX module, which is what a repeater has.

On an Ethernet or ZeroTier camera, Setup's As CRSF, on its own port answer writes both for you: Baudrate (parameter rc_crsf_baud) 420000 and Replace with RX packets (parameter rc_crsf_out_as_rx) on.

Two UARTs, not one

A camera that sends MAVLink to the FC and also drives CRSF or SBUS into it needs two UARTs on the Sokil board: these are not the same UART. That is the As CRSF, on its own port shape on an Ethernet or ZeroTier camera; Setup's hint names both ports, and on some boards the second one is a USB serial adapter that has to be in the harness. Plan the two ports before you cut cables. A WiFi camera kit needs one: it reads the sticks out of the FC's own MAVLink.

The FC side mirrors it: Betaflight has exactly one Serial RX port.

The three links from a Sokil board into a flight controller

Diagram: The three links from a Sokil board into a flight controller - img/flight-controller.svg (vector: img/flight-controller.svg)

Wiring

Wiring is the same on every firmware: this board's TX to the FC's RX, RX to TX, and a shared GND - even when the two are on different power feeds. Swapped RX and TX is the most common first-build error. Both ends must be 3.3 V logic. Do not feed the Sokil board from the FC's 5 V rail either - see Power and the BEC.

The port on an MC800S-V3 camera:

Board picture: MC800S-V3. The tables below carry the same pins, sockets and power inputs.

MC800S-V3 (SSC338Q + IMX415 IPC module)

  • Reported by the device as dev_board: ssc338q
  • Layout choice on the Hardware page: MC800S-V3
  • Board size: 38 x 38 mm
  • Highlighted on the picture: AF UART (UART2) (/dev/ttyS2).
Connectors and sockets
Connector Kind Edge USB port path Note
SSC338Q chip
shield chip
PWM pads
RESET pads
USB pads 1-1
AUDIO pads
ETH + 12V pads the board's Ethernet leg
AF UART pads
IMX415 csi bottom
TX/RX pads
Pads: PWM
Pin Label Type Function here
1 GND gnd
2 PWM1 pwm
3 PWM0 pwm
Pads: RESET
Pin Label Type Function here
1 RESET other
2 GND gnd
Pads: USB
Pin Label Type Function here
1 USB_3.3V 3v3
2 USB_D- other
3 USB_D+ other
4 GND gnd
Pads: AUDIO
Pin Label Type Function here
1 GND gnd
2 AUDIO_OUT other
3 AUDIO_IN other
4 GND gnd
Pads: ETH + 12V
Pin Label Type Function here
1 LED+ other
2 LED+ other
3 RJ45_1 other
4 RJ45_2 other
5 RJ45_3 other
6 RJ45_6 other
7 GND gnd 12V pad Ground
8 12V 5v 12V pad
Pads: AF UART
Pin Label Type Function here
1 SPK_EN other
2 AF_RX uart AF UART (UART2) RX
3 AF_TX uart AF UART (UART2) TX
4 GND gnd AF UART (UART2) Ground
Pads: TX/RX
Pin Label Type Function here
1 TX uart TX/RX pads (UART0) TX
2 RX uart TX/RX pads (UART0) RX
Serial ports (UARTs)
UART Device node TX RX Ground Note
AF UART (UART2) /dev/ttyS2 Pin 3 (AF UART) Pin 2 (AF UART) Pin 4 (AF UART)
TX/RX pads (UART0) /dev/ttyS0 Pin 1 (TX/RX) Pin 2 (TX/RX) the system console - a getty is already talking on it
Power inputs
Input Voltage Current Where Note
12V pad 12V 0.8A peak Pin 8 (ETH + 12V), Ground Pin 7 (ETH + 12V) the feed a Sokil install uses - 12V nominal, about 800 mA peak - what it draws when the IR-cut filter actuates, so size the feed for the peak rather than the average. It boots from 5V or 9V too, but then the IR-cut filter does not switch and Ethernet is unreliable - feed it 12V: the BEC's 12V setting or the flight controller's 12V BEC output.
Notes
  • The flight controller goes on the AF UART connector (AF_TX, AF_RX, GND) - that is /dev/ttyS2, the default MAVLink port. Cross TX and RX.
  • The 4-pin USB header (3.3V, D-, D+, GND) is the only USB host port - the WiFi radio is wired there.

Figure: On the MC800S-V3 the AF UART (UART2, /dev/ttyS2) is the flight-controller port: AF_TX on pin 3, AF_RX on pin 2, ground on pin 4. Every board has its own port - the Hardware page names it for the device you are looking at.

On a RunCam WiFiLink 2 the same port (UART2, /dev/ttyS2) is the 6-pin TO FC connector - IPC wiring has its pins.

Which of the FC's UARTs can take a receiver is a per-board fact you read off that board's own pinout. Sokil's own Lastivka board is the worked example: its RC input lives on the RX6 pad (USART6, the one UART on it without DMA). That pad is shared, so it only becomes a full serial for CRSF or ELRS once BRD_ALT_CONFIG is set to 1 - until then a receiver wired to it is not seen at all. DMA matters to ArduPilot only for raising CRSF above its starting rate, which a non-H7 FC refuses on a UART without it.

Confirm on the bench: whether your FC's SBUS pad carries an inverter is on that FC's own pinout, and no Sokil source names one. Read the documentation of any other board and prove the port on the bench.

ArduPilot

Use Sokil's ArduPilot build where there is one for your board. Everything a kit does outside navigation works on stock; Sokil navigation needs the Sokil ArduPilot 4.7.1 or later, and warns the pilot on any other firmware. The build also adds what stock cannot report, and on a WiFi aircraft that matters most: the sticks arrive on the aircraft's own ELRS receiver, so the only way its link quality, TX power and SNR reach your overlay is through the flight controller's MAVLink telemetry. Stock ArduPilot carries none of the three and fills those fields with unrelated counters, which reads on the overlay as a permanent LQ 100. The build also brings the two-stage Copter failsafe and the GPS-denied landing that finishes. The page above lists it all, board by board.

MAVLink (with the flight controller on this computer's USB, FC setup > Firmware > Sokil port sets these two for the UART you pick):

Setting Value What it means
SERIALn_PROTOCOL 2 MAVLink2 on that port (1 = MAVLink1).
SERIALn_BAUD 115 The baud in thousands: 115 = 115200, 460 = 460800, 921 = 921600. Must match Sokil's MAVLink Baudrate (parameter vtx_mavfwd_baud) or nothing decodes.
SYSID_MYGCS 255 ArduPilot's default - leave it. Sokil's GCS SysId for UAV (parameter vtx_mav_gcs_sysid) at 0 (automatic, the default) follows whatever the FC accepts; only a fixed value there must equal it. RC overrides from any other system id are dropped; commands are only gated too when SYSID_ENFORCE is 1. ArduPilot 4.7 and later spell these MAV_GCS_SYSID and MAV_OPTIONS bit 0.
SRn_EXT_STAT not 0 MAVn_EXT_STAT on 4.7 and later. Here n counts the FC's MAVLink ports in order (SR0 / MAV1 is the first), not the SERIAL number. The status stream on that port: SYS_STATUS carries a CRSF receiver's link statistics for the overlay's LQ / SNR / TxP corner (a receiver in MAVLink mode reports them itself). LQ needs the Sokil ArduPilot build; SNR and TxP also need its board-specific link-statistics extension. Stock shows a fixed LQ 100 and fills the other two fields with its own counters. RSSI arrives separately via RC_CHANNELS. Sokil requests the stream while Request MAVLink streams (parameter vtx_mavsr_enabled) is on; set the rate when the corner stays empty with a receiver fitted.

Three more rows only for RC over MAVLink (RC to VTX MAVLink (parameter vtx_crsf_enabled) on):

Setting Value What it means
RC_OVERRIDE_TIME 3 Seconds an override stays valid before a live onboard receiver takes over (the default; 0 disables overrides, -1 = never expires). This is separate from ArduCopter's RC failsafe timeout, RC_FS_TIMEOUT (1 s by default), counted from the last RC update.
RC_OPTIONS bit 0 1 Only when MAVLink is the drone's ONLY RC: RC_OPTIONS = 1 (Ignore RC Receiver). Leave 0 when a receiver is wired too.
FS_GCS_ENABLE your choice The GCS failsafe runs on its own 5 s heartbeat clock (FS_GCS_TIMEOUT; Plane: FS_GCS_ENABL / FS_LONG_TIMEOUT).

CRSF into the FC:

Setting Value What it means
SERIALn_PROTOCOL 23 RCIN on that port - the FC reads any serial RC protocol there.
RC_PROTOCOLS 1 or 512 1 = all protocols (default) or 512 = CRSF only.
RSSI_TYPE 3 RSSI from the receiver protocol (CRSF link stats).
SERIALn_BAUD leave it Set by the firmware - CRSF is 416666, or 420000 with RC_OPTIONS bit 13 (for ELRS), the rate Sokil's end runs at. Without DMA the UART stays at that rate.

SBUS into the FC:

Setting Value What it means
SERIALn_PROTOCOL 23 RCIN, as above.
RC_PROTOCOLS 1 or 8 1 = all or 8 = SBUS (the standard inverted line); non-inverted SBUS (16, SBUS_NI) is auto-detected too.
SERIALn_OPTIONS bit 0 only if needed Only if the FC's UART cannot read the line as it comes: bit 0 = InvertRX.

Most Linux UARTs cannot invert at runtime, so on a Pi or Radxa Invert TX line (parameter rc_sbus_invert) is a no-op: use 1 or 16 (SBUS_NI), or an external inverter.

Betaflight

On an Ethernet, fiber or Starlink aircraft, aim for one UART: telemetry down and the sticks up on the same wire. That is the shape Sokil is built around, and it is the reason to put Sokil's Betaflight build on a Betaflight airframe - it takes RC on the telemetry port with no separate Serial RX port, reports all sixteen RC channels instead of the first eight, and carries the receiver's link quality, TX power and SNR up to the overlay. On a WiFi kit, control arrives through the aircraft's own ELRS receiver, so MAVLink RC input is not needed. Full RC-channel reporting still matters for Sokil's switches, including CH10, and on a Sokil build the link statistics also reach the overlay through the FC's telemetry. Stock Betaflight sends neither - only channels 1-8 and no link statistics - so on stock firmware move the switches to channels 6-8 as Channels and switches describes.

RC over MAVLink needs Betaflight 2025.12 or later - 4.4 and 4.5 have no MAVLink receiver.

Stock Betaflight 2025.12+ also supports RC over MAVLink when the build includes MAVLink Serial RX - a cloud build carries it only when you pick it. Enable Serial RX and MAVLink telemetry on the same UART, select the MAVLINK receiver provider, and set an explicit baud matching Sokil. A telemetry-only port transmits data but does not receive RC. These settings use MAVLink as the primary receiver; Sokil's separate ability to override an existing CRSF or SBUS receiver is a fork feature.

The fallback, for older firmware or a build without MAVLink Serial RX, is CRSF on a second wire: Setup's Link step asks "How does the flight controller get RC?" on an Ethernet or ZeroTier camera, and answering As CRSF, on its own port moves telemetry to a second UART and writes the CRSF settings. This uses a second UART and cable. Which RC channels and link statistics reach Sokil still depends on the FC firmware; see the firmware guide.

For MAVLink Serial RX:

Setting Value What it means
Ports > UARTn Serial RX: ON, Telemetry Output: MAVLink The MAVLink receiver opens that port in both directions and carries the telemetry too.
Telemetry baud 115200 Set it explicitly to Sokil's MAVLink Baudrate (parameter vtx_mavfwd_baud) - on AUTO Betaflight picks 460800 as a receiver and 57600 for telemetry alone.
serialrx_provider MAVLINK Receiver tab: Serial (via UART), provider MAVLINK. In the CLI it is set serialrx_provider = MAVLINK then save. A build without MAVLink Serial RX accepts the value and the receiver silently never starts.
One Serial RX port - This UART is the only MAVLink port that receives anything, and it cannot share with a CRSF / SBUS receiver.
Inbound RC_CHANNELS_OVERRIDE, RADIO_STATUS The receiver parses only RC and RADIO_STATUS - no arming or modes from the ground (2026.6 and later also answer requests), and the sender's system id is not checked.
mavlink_rc_chan_rate 10 How often the FC sends the camera its RC report, in Hz (default 1). The camera reads its switches and gimbal sticks from it and Betaflight ignores its request for more - at 1 Hz they react up to a second late. set mavlink_rc_chan_rate = 10 then save, or Apply camera policy on FC setup's Failsafe tab.

For telemetry only, set Ports > UARTn to Telemetry Output: MAVLink and the baud, nothing else - that port never takes RC, so RC still needs the receiver above; general MAVLink commands are not supported by it.

Either way, raise mavlink_rc_chan_rate to 10 (the row above) wherever the camera reads RC out of the FC's MAVLink. With the flight controller on this computer's USB, FC setup > Firmware > Sokil port sets either of the two up for the UART you pick, saves and restarts the flight controller. On Betaflight 2026.6 the same page's Ports and Receiver tabs set the rest (the receiver protocol included), with no Betaflight Configurator - see Setting up a Betaflight flight controller.

With MAVLink Serial RX, missing RC_CHANNELS_OVERRIDE frames trigger Betaflight's normal RXLOSS/failsafe sequence. Continued valid frames with held or centered channels can hide pilot input loss; current Sokil stops injection when its input goes stale. Keep RC input (parameter rc_ch_source) pinned to the real input source so FC telemetry cannot sustain a feedback loop.

CRSF into the FC:

Setting Value What it means
Ports > UARTn Serial RX: ON One port only, a real UART (no SoftSerial).
serialrx_provider CRSF Receiver tab: Serial (via UART), provider CRSF.
Baud 420000 (fixed) Fixed by the protocol - nothing to match.
No MAVLink telemetry on that UART - Betaflight's own guide: do not save CRSF Serial RX and MAVLink telemetry output together - the port configuration can reset.

SBUS into the FC: the same first row, then serialrx_provider = SBUS, and serialrx_inverted = OFF for standard inverted SBUS on the FC's SBUS pad (it carries the inverter). A non-inverted line goes to a plain RX pad with serialrx_inverted = ON.

INAV

Setting Value What it means
Ports > UARTn Telemetry: MAVLink The Telemetry column of the UART row.
Telemetry baud 115200 Set it explicitly to Sokil's MAVLink Baudrate (parameter vtx_mavfwd_baud).
serialrx_provider MAVLINK Only for RC over MAVLink. Receiver tab: type SERIAL, provider MAVLINK. Recommended 8+, which adds the ELRS link statistics.
Ports > UARTn > Serial RX OFF Only for RC over MAVLink: the MAVLink telemetry row carries the RC too. Serial RX on the same row is an invalid port configuration, and INAV resets it.

CRSF and SBUS are the Betaflight rows above, the shared-UART warning included: INAV also resets the port configuration when CRSF Serial RX and MAVLink telemetry share a UART.

PX4

PX4 runs MAVLink as numbered instances, and MAV_n below is that instance (0, 1 or 2), not a UART number: MAV_n_CONFIG names the port each one runs on. Find the instance whose port is the one wired to Sokil, and set its rows. QGroundControl does it, and so does the station: the All parameters tab of Flight controller setup edits PX4 parameters by name.

Setting Value What it means
MAV_n_CONFIG the port wired to Sokil The UART this MAVLink instance runs on, such as TELEM1 (instance 0's default).
The port's baud 115200 SER_TEL1_BAUD for TELEM1, and so on. Must match Sokil's MAVLink Baudrate (parameter vtx_mavfwd_baud).
MAV_n_MODE 0 (Normal) The set of messages PX4 sends. Normal sends RC_CHANNELS five times a second. Minimal (7) sends it once every two seconds - too slow for the camera's switches.
MAV_n_RATE 0 The most bytes per second the instance sends. 0 is half the port's capacity, about 5.7 kB/s at 115200. Instance 0 ships at 1200, which slows every message: telemetry lags and parameter reads time out.

The rows above take effect only after the FC reboots. If the camera goes dark whenever the FC reboots, check its feed - a camera fed through the FC goes down with it (Power and the BEC).

PX4 ignores the stream requests Sokil sends, so Request MAVLink streams (parameter vtx_mavsr_enabled) does nothing there and the two rows above are the only rate control. To raise one message - RC_CHANNELS, for faster camera switches - add a line to etc/extras.txt on the FC's SD card, which PX4 runs at boot after MAVLink starts: mavlink stream -d <device> -s RC_CHANNELS -r 10, where <device> is the port's device as mavlink status prints it.

RC from the FC's own receiver (a WiFi camera kit): PX4 sends the receiver's channels as they arrive, before its own channel mapping, so Sokil's switches use the receiver's channel numbers. Nothing is sent while PX4 hears no receiver: check its Radio page in QGroundControl first. RC input (parameter rc_ch_source) is pinned to MAVLink, as Pin the channel source says.

RC over MAVLink (RC to VTX MAVLink (parameter vtx_crsf_enabled) on): PX4 takes Sokil's sticks as an RC transmitter, so its radio calibration and channel mapping apply to them, as to a receiver.

Setting Value What it means
COM_RC_IN_MODE 0, 2, 3 0 = RC transmitter only, 2 and 3 accept RC or a joystick (3 is the default). 1 (joystick only) and 4 (no stick input) ignore Sokil's sticks.
Radio calibration done QGroundControl's Radio page, run while Sokil sends the sticks, sets the channel ranges and which channel is which.

PX4 sends the overridden channels back in RC_CHANNELS, so the pin in Pin the channel source applies to PX4 too.

Confirm on the bench: the MAVLink rows above were checked on a PX4 1.14.3 fixed wing. RC over MAVLink into PX4, a receiver wired to the same FC at the same time, and the extras.txt line come from PX4's own source and have not been proven with Sokil. Prove them on the bench before flying.

Pin the channel source

RC to VTX MAVLink (parameter vtx_crsf_enabled) switched on must always ship with RC input (parameter rc_ch_source) pinned to CRSF (ELRS). RC that the FC echoes back lands in Sokil's own channel state, and with the source left at Any input or MAVLink that echo is re-sent to the FC and loops. Pinning the source to the real one drops the echo first. The loop is only possible while RC to VTX MAVLink's Input (parameter vtx_crsf_source) is Main RC, the input that reads Sokil's own channel state; Receive RC over UDP and Repeater RC read streams the FC's echo never reaches, and Diagnostics does not warn about them.

Pinning RC input (parameter rc_ch_source) to CRSF (ELRS) is equally mandatory when the sticks reach the FC as CRSF instead: the FC echoes its RC back either way, and it simply arrives on the telemetry UART rather than the shared one.

On a drone whose RC reaches the FC over its own ELRS receiver - a WiFi camera reading the sticks out of the FC's MAVLink - RC to VTX MAVLink (parameter vtx_crsf_enabled) stays off and RC input (parameter rc_ch_source) pinned to MAVLink is the pin.

When the FC does not hear us

The FC's heartbeat only proves the wire from the FC. A dead TX wire, a swapped pin or the wrong baud in our direction looks perfectly healthy until the sticks and commands silently never arrive.

So Sokil checks its own direction too: while the FC's heartbeat is seen, it asks a question the FC answers on its own. The answer is the FC link's reply check (parameter vtx_mavfwd_tx_ok), shown as Our TX on the Flight controller node of the Status page's Telemetry stream, and the Hardware page paints the port amber with FC does not hear us when the FC does not answer. An unknown result is not a fault - stock Betaflight before 2026.6 never answers such questions - and is never painted red. The check itself (parameter vtx_mavfwd_probe) can be switched off on a box whose MAVLink peer is a relay rather than an autopilot - there is no control for that in the UI; an expert does it on the parameters page.

These Diagnostics (on the station) findings cover the FC link and its RC input, next to 403 (no FC heartbeat) and 404 (streams missing):

Code Finding What it means
405 fc_tx_no_reply The FC sends telemetry but does not hear us. RC over MAVLink, stream requests and commands all silently do nothing while the picture looks fine.
406 fc_gcs_sysid_mismatch ArduPilot accepts RC overrides only from the ground-station system id in its own parameter, and GCS SysId for UAV (parameter vtx_mav_gcs_sysid) (VTX settings > Telemetry > MAVLink, expert only) is pinned to another. Set it to match, leave it at 0 to follow the FC automatically, or change the FC's.
408 vrx_gcs_sysid_mismatch The same check on the ground station's own sender (its RC failover over MAVLink): the station's GCS SysId for UAV (parameter vrx_mav_gcs_sysid) (VRX settings > Receive > MAVLink, expert only) is pinned to an id the FC rejects. 0 follows the FC automatically.
407 rc_override_loop Sokil is feeding the FC sticks from its own channel state (RC to VTX MAVLink Input Main RC) while RC input (parameter rc_ch_source) still accepts MAVLink, so the FC's own echo comes back in. A real radio loss then never reaches the FC's failsafe. Pin RC input (parameter rc_ch_source) to the real source.
409 vtx_crsf_rc2_off RC to VTX MAVLink's Input (parameter vtx_crsf_source) is Repeater RC, but Repeater RC is off, has no input, or does not exist on this device (a camera), or is pinned to an input it does not have, so the FC gets no sticks from Sokil at all. Troubleshooting has the fix for each.
414 vtx_crsf_main_rc_on_repeater A flying repeater's RC to VTX MAVLink has its Input (parameter vtx_crsf_source) on Main RC - on a repeater those are the relayed drone's sticks, so the repeater would follow the other pilot and keep no failsafe of its own. Set Input to Repeater RC. Troubleshooting

The MAVLink settings are on the Telemetry tab of VTX settings (on the station) (admin mode), the RC ones on Control (on the station).

A payload drop rides this same link: the drop board answers on it as a component of the aircraft, and Sokil's Direct mode drives the flight controller's own relay and servo outputs. Payload delivery has both.

On this page

Search the documentation

Start typing. The up and down arrows choose, Enter opens, Esc closes.