fpv-tools
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fpv_tools-0.2.1.tar.gz | 81.2 kB | Without provenance | Details for fpv_tools-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fpv_tools-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for fpv_tools-0.2.1-py3-none-any.whl |
Total release size: 176.7 kB
Release files / fpv_tools-0.2.1.tar.gz
| Download URL | fpv_tools-0.2.1.tar.gz |
|---|---|
| Size | 81.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce0d9762298814ba817582a66b0403b20a49ac1f4135b70118d29f628bc7cd29
|
|
BLAKE2b-256 checksum How to use checksums |
b486d2885046018424711e6daa3ab800c7da5a45bf494bd92951b41dec9eeef5
|
| 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.1-py3-none-any.whl
| Download URL | fpv_tools-0.2.1-py3-none-any.whl |
|---|---|
| Size | 95.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f80eb62521e8f349ccdad10f3c7398cab73d24dae1f33632101f60666b43285e
|
|
BLAKE2b-256 checksum How to use checksums |
48cf9c8ed6502ead65846860404172f0c7189ab3e3165acbe3bf1585b34b6b7d
|
| 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.1
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.