All Projects → iNavFlight → blackbox-log-viewer

iNavFlight / blackbox-log-viewer

Licence: GPL-3.0 license
Interactive log viewer for flight logs recorded with blackbox

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to blackbox-log-viewer

mwptools
ground station, mission planner and tools for inav and multiwii-nav
Stars: ✭ 147 (+764.71%)
Mutual labels:  inav, blackbox
iAts pro
Antenna tracking system build on ESP32 module
Stars: ✭ 44 (+158.82%)
Mutual labels:  inav
MultiBUGS
Multi-core BUGS for fast Bayesian inference of large hierarchical models
Stars: ✭ 28 (+64.71%)
Mutual labels:  blackbox
WhitenBlackBox
Towards Reverse-Engineering Black-Box Neural Networks, ICLR'18
Stars: ✭ 47 (+176.47%)
Mutual labels:  blackbox
ESP32
DroneBridge for ESP32. A short range wifi based telemetry link. Support for MAVLink, MSP & LTM (iNAV).
Stars: ✭ 183 (+976.47%)
Mutual labels:  inav
Cleanflight
Clean-code version of the baseflight flight controller firmware
Stars: ✭ 2,362 (+13794.12%)
Mutual labels:  inav
Inav
INAV: Navigation-enabled flight control software
Stars: ✭ 1,830 (+10664.71%)
Mutual labels:  inav
YAMSPy
Yet Another Multiwii Serial Protocol Python Interface... for Betaflight, iNAV, etc...
Stars: ✭ 47 (+176.47%)
Mutual labels:  inav
Ssl Kill Switch2
Blackbox tool to disable SSL certificate validation - including certificate pinning - within iOS and macOS applications.
Stars: ✭ 2,420 (+14135.29%)
Mutual labels:  blackbox
Interpret
Fit interpretable models. Explain blackbox machine learning.
Stars: ✭ 4,352 (+25500%)
Mutual labels:  blackbox
madbomber
Backtrace-on-throw C++ exception logger
Stars: ✭ 17 (+0%)
Mutual labels:  blackbox
WhiteBox-Part1
In this part, I've introduced and experimented with ways to interpret and evaluate models in the field of image. (Pytorch)
Stars: ✭ 34 (+100%)
Mutual labels:  blackbox
dextop
Dextop - Linux-based distribution workstation on Android
Stars: ✭ 24 (+41.18%)
Mutual labels:  blackbox

INAV Blackbox Explorer

Main explorer interface

This tool allows you to open logs recorded by INAV's Blackbox feature in your web browser. You can seek through the log to examine graphed values at each timestep. If you have a flight video, you can load that in as well and it'll be played behind the log. You can export the graphs as a WebM video to share with others.

Installation

INAV Blackbox Explorer is distributed as standalone application.

Windows

  1. Visit release page
  2. Download app for Windows platform (win32 or win64 if present)
  3. Extract ZIP archive
  4. Run app from unpacked folder
  5. App is not signed, so you have to allow Windows to run untrusted application. There might be a monit for it during first run

Mac

  1. Visit release page
  2. Download app for Mac platform
  3. Extract ZIP archive
  4. Run application
  5. App is not signed, so you have to allow Mac to run untrusted application. There might be a monit for it during first run

Usage

Click the "Open log file/video" button at the top right and select your logged ".TXT" file and your flight video (if you recorded one).

You can scroll through the log by clicking or dragging on the seek bar that appears underneath the main graph. The current time is represented by the vertical red bar in the center of the graph. You can also click and drag left and right on the graph area to scrub backwards and forwards.

Syncing your log to your flight video

The blackbox plays a short beep on the buzzer when arming, and this corresponds with the start of the logged data. You can sync your log against your flight video by pressing the "start log here" button when you hear the beep in the video. You can tune the alignment of the log manually by pressing the nudge left and nudge right buttons in the log sync section, or by editing the value in the "log sync" box. Positive values move the log toward the end of the video, negative values move it towards the beginning.

Customizing the graph display

Click the "Graph Setup" button on the right side of the display in order to choose which fields should be plotted on the graph. You may, for example, want to remove the default gyro plot and add separate gyro plots for each rotation axis. Or you may want to plot vbat against throttle to examine your battery's performance.

Native app build via NW.js

Development

  1. Install node.js
  2. Change to project folder and run npm install.
  3. Run npm start to start.
  4. Run npm debug to build & run the debug flavor (optional).

App build and release

The tasks are defined in gulpfile.js and can be run either via gulp <task-name> (if the command is in PATH or via ../node_modules/gulp/bin/gulp.js <task-name>:

  1. Optional, install gulp npm install --global gulp-cli.
  2. Run gulp <taskname> [[platform] [platform] ...].

List of possible values of <task-name>:

  • dist copies all the JS and CSS files in the ./dist folder.
  • apps builds the apps in the ./apps folder [1].
  • debug builds debug version of the apps in the ./debug folder [1].
  • release zips up the apps into individual archives in the ./release folder [1].

[1] Running this task on macOS or Linux requires Wine, since it's needed to set the icon for the Windows app (build for specific platform to avoid errors).

Build or release app for one specific platform

To build or release only for one specific platform you can append the plaform after the task-name. If no platform is provided, only for the platform you are builing from will be build.

  • MacOS use gulp <task-name> --osx64
  • Linux use gulp <task-name> --linux64
  • Windows use gulp <task-name> --win32
  • ChromeOS use gulp <task-name> --chromeos

You can also use multiple platforms e.g. gulp <taskname> --osx64 --linux64.

macOS DMG installation background image

The release distribution for macOS uses a DMG file to install the application. The PSD source for the DMG backgound image can be found in the root (dmg-background.png). After changing the source, export the image to PNG format in folder ./images/.

Flight video won't load, or jumpy flight video upon export

Some flight video formats aren't supported by Chrome, so the viewer can't open them. You can fix this by re-encoding your video using the free tool Handbrake. Open your original video using Handbrake. In the output settings, choose MP4 as the format, and H.264 as the video codec.

Because of Google Bug #66631, Chrome is unable to accurately seek within H.264 videos that use B-frames. This is mostly fine when viewing the flight video inside Blackbox Explorer. However, if you use the "export video" feature, this bug will cause the flight video in the background of the exported video to occasionally jump backwards in time for a couple of frames, causing a very glitchy appearance.

To fix that issue, you need to tell Handbrake to render every frame as an intraframe, which will avoid any problematic B-frames. Do that by adding "keyint=1" into the Additional Options box:

Handbrake settings

Hit start to begin re-encoding your video. Once it finishes, you should be able to load the new video into the Blackbox Explorer.

License

This project is licensed under GPLv3.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].