Skip to main content

fpv-tools

‖ PyPI ‖ Changelog ‖

Betaflight flight controllers and their blackbox logs from the command line.

  • The flight controller's own interfaces: any CLI command or MSP message, with the flight controller left as found unless changes are saved
  • Blackbox logs as signals to query: physical units, conditions to select moments of a flight, statistics, spectra and step response, and values the flight controller computed but did not log
  • Faithful to the firmware: log decoding, MSP layouts and the flight controller's calculations follow the Betaflight source of each release (4.5, 2025.12 and 2026.6)

Install

Run it with uv, no install needed:

uvx fpv-tools --help

Or install it as a tool:

uv tool install fpv-tools

Usage

Flight controller

uvx fpv-tools cli status 'get vbat'                               # CLI commands
uvx fpv-tools cli 'diff all' > config.txt                         # a backup,
uvx fpv-tools cli < config.txt                                    # and its restore
uvx fpv-tools msp MSP_RC --every 0.05 --changes                   # poll a message
uvx fpv-tools msp MSP2_GET_TEXT type=PILOT_NAME --json            # fields as JSON
uvx fpv-tools msp MSP2_SET_TEXT type=CRAFT_NAME text=Whoop --save # change and save

Changes are temporary unless saved: the flight controller reboots afterwards and comes back as it was. Use --save to store them, or --no-reboot to keep them until power-off. Irreversible operations, such as erasing the flash, ask for confirmation first.

Blackbox logs

uvx fpv-tools bb pull -O logs/                                    # download from the onboard flash
uvx fpv-tools bb info logs/                                       # firmware, craft, flights and events
uvx fpv-tools bb changes logs/ -s mode -s failsafe                # every mode and failsafe change
uvx fpv-tools bb runs logs/ -s acc --when 'acc > 3'               # stretches of high acceleration
uvx fpv-tools bb stats logs/ -s vbat -s amps --when 'thr > 50'    # battery under load
uvx fpv-tools bb spectrum logs/ -s gyro_raw.roll --vs-throttle 10 # gyro noise by throttle
uvx fpv-tools bb step logs/ -s gyro.roll -r setpoint.roll         # how gyro follows setpoint
uvx fpv-tools bb export logs/ -s thr -s gyro.roll -o flight.csv   # signals as CSV

Some signals need settings the log does not record, such as the battery alarm state, which needs the alarm thresholds. They come from a dump all export, the flight controller itself, or the command line:

uvx fpv-tools cli 'dump all' > dump.txt
uvx fpv-tools bb changes logs/ -s battery_state --config dump.txt # the battery alarm as the FC raised it

See uvx fpv-tools bb --help for all signals and the condition syntax.

Development

Needs uv. The firmware tables and MSP codes are generated from a Betaflight source checkout.

uv run scripts/gen_firmware_tables.py path/to/betaflight   # regenerate the firmware tables
uv run scripts/gen_msp_codes.py path/to/betaflight         # regenerate the MSP codes
uv run pytest                                              # tests
BETAFLIGHT_SOURCE=path/to/betaflight uv run pytest         # including checks against the firmware source
FPV_TEST_PORT=/dev/ttyACM0 uv run pytest -m hardware       # read-only checks on a connected, disarmed FC

License

GNU General Public License v3 or later, see LICENSE.

Metadata

Release files for fpv-tools 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fpv-tools 0.2.0
File Size Uploaded Provenance Actions
fpv_tools-0.2.0.tar.gz 80.8 kB Without provenance Details for fpv_tools-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fpv-tools 0.2.0
File Interpreter ABI Platform Actions
fpv_tools-0.2.0-py3-none-any.whl Python 3 none any Details for fpv_tools-0.2.0-py3-none-any.whl

Total release size: 176.1 kB

Release files / fpv_tools-0.2.0.tar.gz

Download URL fpv_tools-0.2.0.tar.gz
Size 80.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1aec16d007e841496b3be3e0909b8a94c6d5cd568f36df8e42748be217616ac1
BLAKE2b-256 checksum
How to use checksums
f14b80205ae789ef9560e600fffe834e6b6f92a061fa63415ce8cbf3136d38a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / fpv_tools-0.2.0-py3-none-any.whl

Download URL fpv_tools-0.2.0-py3-none-any.whl
Size 95.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2c08046b3b19af780478fa536b6d35b72ae927d8913f7dbcd67ea3a2e5d911f
BLAKE2b-256 checksum
How to use checksums
e10939070b492e23cc1e47902d175371bb3c2cbb32a60dcfaeb3832fe292b438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for fpv-tools 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page