Skip to content

Releases: betaflight/blackbox-log-viewer

New Feature - Workspaces

22 Apr 06:29
Compare
Choose a tag to compare

Some minor feature additions and bug fixes;

  1. The graph smoothing, expo and scale automatically match the original log viewer settings when first adding the graph field to the chart; you can, of course, change these on the dialog to what you want, but at least you now know what the defaults were in the original log viewer.
  2. Bug fix the 'Log Setup' dialog so that the log file does not have to be re-loaded after changing the settings.
  3. Fixed bug where the Anaylser would cause a crash after loading a log file 6 times.
  4. Fixed Issue #6.
  5. Added user configurable time to main chart window; user can now enter the desired log time to view directly without the need to scroll.
  6. Added measure mode to graph; pressing 'M' will put a marker on the graph; then the difference between the current time and the marker is displayed in the toolbar. Pressing 'M' again removes the marker.
  7. Easy log/video sync, press 'M' on the log to mark an event (start of flip or roll), then scroll until the first video frame that shows the event (video frame shows start of corresponding roll or flip). Now press [Alt]M to move the log/video sync to this point.
    8 New Feature : Workspaces;

Workspaces

It is now possible to store your graph configurations to keyboard shortcuts,
For example

  1. Create a chart setup with graph fields rcCommand[roll], Gyro[roll], and also a graph with PID_P[roll], PID_I[roll] and PID_D[roll].
  2. Exit the graph setup dialog; save changes button (as usual) and the chart will be displayed (as usual).
  3. Now Press [Shift][1] to store this configuration to the workspace number 1.
  4. Now go back into the graph setup dialog box and change all the fields for [pitch],
  5. Exit the graph setup dialog; save changes button (as usual) and the chart will be displayed (as usual).
  6. Now press [Shift][2] to store this configuration to the workspace number 2.
  7. Repeat the above for [yaw] and store the configuration to workspace 3 ([Shift][3])

Now you can easily switch between workspaces by just pressing [1] or [2] or [3] (without using the [Shift] key).

You can store configurations for keys [0] through [9]; and the configurations are remembered even if if you close chrome and restart it.

Finally, [Ctrl][Z] switches back to the last graph configuration (i.e. undo); repeatedly pressing [Ctrl][Z] will toggle between the two graph configurations, the current and the last.

Add Keyboard and Mouse Support

21 Apr 13:50
Compare
Choose a tag to compare

New Features for controlling the log using the keyboard and mouse.

  1. [Spacebar] play/pause log.
  2. [Left], [Right] now scroll log back and forwards.
  3. [Shift][Left], [Shift][Right] Zoom
  4. [Alt][Left], [Alt][Right] Zoom faster
  5. [PgUp], [PgDn] Goto start/end off log

For the Mousewheel,

  1. [WheelUp], [WheelDn] move back wards and forwards through log.
  2. [Shift][WheelUp], [Shift][WheelDn] Zoom
  3. [Alt][WheelUp], [Alt][WheelDn] Zoom faster

Hope this helps....

Additional customised graph smoothing, zoom etc

18 Apr 19:36
Compare
Choose a tag to compare

This release adds the ability on the graph screen to choose custom smoothing, expo and zoom settings for each graph field.

By default, the standard logger would setup smoothing, expo and zoom factor automatically; now you can just choose the settings you want to look at.

For the Smoothing Field, the default of 30% matches the standard logger for most fields except for motors, which was smoothed 50%. 0% is no smoothing and represents the raw data directly, 100% is maximum smoothing.

For the Expo setting, this was different for each field, 25% being the default expo for gyros. The expo function exaggerates the scale at the centre line; a value of 100% is a linear scale.

The Zoom setting is self explanatory, 100% is normal, 200% zooms the chart in vertically. Warning, as you zoom in, the chart pen can go outside of the chart limits (overlapping other graphs).

Added new logged events

17 Apr 06:09
Compare
Choose a tag to compare
Pre-release

Added events to the graphing window to show flight mode changes.

Can use a custom build of betaflight v2.6.1. that logs.

  • Current pitch/roll/yaw rates, expo and super expo factors.
  • In the Viewer Legend there is a new button 'Log Setup' that can be used to display the logged rates.
  • Flight mode change events on the timeline; so you can see exactly when you switched to SuperExpo or even turned on your beeper.
    Should still work fine on logs without the betaflight enhancements.

Addition of custom graphing fields and scaling

14 Apr 09:03
Compare
Choose a tag to compare

This release adds the following features
1.Scaling of rcCommand to deg/s using Betaflight v2.6.1 scaling.

  • The table below the graph now shows the deg/s value for rcCommand (roll, pritch and yaw).
  • The rate values for pitch, roll and yaw from the configuration that the log refers to needs to be entered into a new Log Setup dialog before opening the log file. (one day these rates might be added to the blackbox log file header - like rcRate at the moment).

2.Once we know the rcCommand deg/s values, we can now generate 9 new graph fields. These are at the end of the list when setting up graph fields.

  • PID_Error[roll], PID_Error[pitch], PID_Error[yaw];
    is a graph of the error the PID is using to calculate motor outputs; the closer to the center line this graph is, the better the tuning (?); the error is the difference between the commanded rcCommand (in deg/s) and the actual gyro (in deg/s).
  • rcCommand__s_[roll], rcCommand__s_[pitch], rcCommand__s_[yaw]_; and
  • gyroADC__s_[roll], gyroADC__s_[pitch], gyroADC__s_[yaw]_;
    these are both (rcCommand and gyroADC) scaled to the same range (0-1200deg/s) so in an ideal world, when plotted together (rcCommands[roll], and gyroADCs[roll] for example) they would perfectly overlap; any difference (PID_Error) is what the PID controller works on to correct the crafts attitude.

SCALING ONLY WORKS ACCURATELY FOR REWRITE AND LUXFLOAT (MW23 for a future release) HOWEVER THIS VIEWER CAN STILL BE USED FOR ALL LOGS.

v1.0.2: Analyse only active window width

03 Apr 13:56
Compare
Choose a tag to compare

This version patches the hard coded graph/field selection.

  • When you first start the viewer, the analyser is not shown until you select a field from the graph legend on the right.
  • You can simply click select the field from the graph legend and that field will be analysed.
  • The analyser window is now labelled for the selected field.
  • When changing selection, you should play the graph for about 1 second to allow the FFT smoothing (which is set at 0.8s) to settle down.
  • The frequency scale at the bottom is calibrated for a 2k loop time, if you run at a different loop time, the shape will be the same but the scale will probably be wrong.
  • The analyser is now limited to the active window so Zooming in/out effects the number of samples. Zooming out further than 40% fills the buffer completely; so going further out will not make the analyser sample more points. You can still zoom out to 10% but the analyser won't consider the extra data.

Spectrum Analyser

02 Apr 19:37
Compare
Choose a tag to compare
Spectrum Analyser Pre-release
Pre-release

Spectrum Analyser enhancement for Blackbox Viewer.

  1. The spectrum is based upon 2048 samples from the left hand side of the window (not the center point); zoom level is irrelevant.
  2. Only the first graph field shown at the top of the legend is analysed; change the top graph field to analyse different fields.
  3. The base sample frequency is set to 2000Hz (representing a loop time of 500 in cleanflight/betaflight). Other loop times or logging intervals will work, but the x-scale displayed below the analyser will probably be wrong; It is currently a hardcoded setting; in future this will be adjustable from the GUI.
  4. There are some subtle graphic enhancements:-
    • There is a background showing the graph extents (to make it easier to spot the full range of the graph values)
    • The graph center line is now dashed to distinguish it from a graph pen.
    • There is a new graph setup selection for rcCommand to make it easier to select when setting up your workspace.