Skip to main content

fpv-tools

GitHub PyPI Python CI License

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 profile' 'get bat'                # CLI commands
uvx fpv-tools cli 'diff all' > config.txt                         # config backup
uvx fpv-tools cli < config.txt                                    # and restore it
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' > config_dump.txt
uvx fpv-tools bb changes logs/ -s battery_state --config 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.3

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.3
File Size Uploaded Provenance Actions
fpv_tools-0.2.3.tar.gz 81.4 kB Without provenance Details for fpv_tools-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 176.9 kB

Release files / fpv_tools-0.2.3.tar.gz

Download URL fpv_tools-0.2.3.tar.gz
Size 81.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0b8929b90861f815f01474cb1fa35e0dae6b28c1b189dc1c95663301b54229ba
BLAKE2b-256 checksum
How to use checksums
388cdc8a914bc2a1e87a8f51193986439d0505739b74dce8cabb4552f7eac4c8
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.3-py3-none-any.whl

Download URL fpv_tools-0.2.3-py3-none-any.whl
Size 95.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d84e67e9e8c24fca8bea3498b8514aea30c05e0b4d4aaa02d3c58e4f09107173
BLAKE2b-256 checksum
How to use checksums
ad2b3798a5719f2e655968373d28798b4ea996e568ac32972facaf7cf368484b
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.3

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