> For the complete documentation index, see [llms.txt](https://docs.gyroflow.xyz/app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gyroflow.xyz/app/getting-started/supported-cameras/flight-controllers.md). Agents can also search and read this documentation through its [MCP server](https://docs.gyroflow.xyz/app/~gitbook/mcp).

# Flight controllers

The gyro data logged by a drone's flight controller can stabilize the video of any camera on that drone. You'll have to synchronize the log with the video, see [⌛ Synchronization](https://docs.gyroflow.xyz/app/getting-started/basic-usage/synchronization.md#synchronizing-external-gyro-source).

## Betaflight

Gyroflow reads Betaflight blackbox logs (`.bbl`, `.bfl`, or `.csv` exported from Blackbox Explorer). INAV, Emuflight and other forks use the same format.

* Set up the logging with the Gyroflow logger presets, see [Flight controller](https://docs.gyroflow.xyz/app/advanced-usage/using-external-gyro-source/flight-controller.md#gyroflow-logger-preset).
* Enter the camera uptilt in `Motion data -> Rotation -> Pitch`, see [Camera angle](https://docs.gyroflow.xyz/app/advanced-usage/using-external-gyro-source/flight-controller.md#camera-angle).
* If the log file contains several flights, choose yours in **Select log**, see [Multiple logs in one file](https://docs.gyroflow.xyz/app/advanced-usage/using-external-gyro-source/flight-controller.md#multiple-logs).

## ArduPilot

Gyroflow reads ArduPilot logs (`.bin` or `.log`) directly, there's no need to convert them.

Set up the logging as described in ArduPilot's [Video Stabilization Using IMU data and Gyroflow](https://ardupilot.org/copter/docs/common-gyroflow.html):

* enable the video stabilization bit in `LOG_BITMASK` (bit 20 for Copter and Rover, bit 21 for Plane),
* set `SCHED_LOOP_RATE` to 300 Hz or higher (Plane and Rover default to 50 Hz),
* optionally, set `LOG_FILE_DSRMROT` to 1, to get one log per flight.

Enter the camera angle in `Motion data -> Rotation -> Pitch`: positive when the camera is tilted up, negative when it's tilted down (on planes, often around -10° to -20°).

### Wobble in planes

Jello or wobble that Gyroflow doesn't remove often comes from a soft-mounted camera: it moves differently than the autopilot, whose IMU recorded the motion. ArduPilot suggests hard mounting the camera to the airframe, but warns that it can also make the results worse, so test both.

Since Gyroflow 1.7.0, you can also use [Optical correction](https://docs.gyroflow.xyz/app/advanced-usage/input-data.md#optical-correction) with **Correction** set to **Per row**. It corrects the motion data wherever the image disagrees with it, and removes the jello.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gyroflow.xyz/app/getting-started/supported-cameras/flight-controllers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
