Skip to content

fumimatsu/blackbox-flight-analyzer

Repository files navigation

Blackbox Flight Analyzer

Video-first Blackbox review app for pilots who want to understand what happened in the air, not just stare at waveforms.

Blackbox Flight Analyzer UI

Why this exists

Existing Blackbox viewers can already overlay flight data on top of DVR footage.

Blackbox Flight Analyzer is aimed at making that experience more readable and more actionable:

  • the DVR remains the primary surface
  • overlays are tuned for quick visual understanding
  • event detection helps surface the parts of a flight worth reopening
  • comparison workflows make setup changes easier to judge

Instead of asking the pilot to hunt through the whole timeline, the app tries to make the important moments easier to spot and easier to review.

What you can do

  • Load one or more .BBL logs and review them as selectable flight tabs
  • Attach a DVR clip and scrub the log and video together
  • See RC, setpoint, error, motor, RPM, and AUX information as an OSD-style overlay
  • Jump to detected event windows such as loaded roll arcs and saturation bursts
  • Compare flights in a single-video review workflow
  • Auto-detect ARMED in the DVR and apply a video offset suggestion

That last point is especially useful in practice: instead of manually lining up a DVR and log from scratch, the app can scan the early part of the clip, detect the ARMED OSD text, and use that to propose a sync offset. It is not magic and it can still miss, but when it works it removes one of the most annoying parts of Blackbox review.

Typical flow

  1. Open a .BBL
  2. Attach the DVR
  3. Let auto sync try to detect ARMED
  4. Fine-tune offset if needed
  5. Scrub, replay, and jump through event windows
  6. Compare flights or setup changes once the review target is clear

Product stance

This project does not aim to repackage an existing Blackbox viewer UI. The reusable part is limited to log decoding/runtime infrastructure isolated behind the adapter layer. The product value is built in the React app, DVR-first UX, overlay design, event detection, sync workflow, and comparison experience.

Commands

  • npm install
  • npm run start
  • npm run build

GitHub Pages

This repo now includes a GitHub Actions workflow that builds and deploys the app to GitHub Pages on every push to main.

To enable it in the repository settings:

  1. Open Settings -> Pages
  2. Set Source to GitHub Actions
  3. Push to main or run the Deploy GitHub Pages workflow manually

The workflow runs:

  • npm ci
  • npm test
  • npm run build

The Vite base path is set automatically for GitHub Pages builds, while local development still uses /.

Structure

  • src/app: React app shell and Zustand store
  • src/domain: selectors, derived metrics, events, compare, and sync logic
  • src/vendor/log-core: isolated log parsing/runtime modules used behind the adapter layer
  • docs: migration and architecture notes

Diagnostics direction

Rule-based tuning guidance is planned, but it should be grounded in official Betaflight references instead of ad-hoc guesses.

  • Draft notes: docs/diagnostic-rules.md

Notes

  • This repo is the standalone continuation of the React-first MVP.
  • Third-party derived log/runtime code is intentionally isolated behind src/domain/blackbox/adapter.
  • Licensing and attribution details are documented in NOTICE.md and LICENSE.
  • A single .BBL may surface as multiple selectable flight tabs when it contains multiple readable log sections.

About

Video-first Blackbox flight analysis with DVR overlays, event detection, and flight comparison.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors