betaflight/blackbox-log-viewer

Can't open "Freq vs throttle" plots for some logs after #668

mituritsyn opened this issue · 5 comments

Describe the bug

Analyzer display doesn't show "Freq vs throttle" data on some logs after #668
affected fields: gyro, unfiltered_gyro, gyro_scaled maybe other

image

1.txt

To Reproduce

  • Open provided log file. not sure if it is matter some fields disabled in BF blackbox tab( setpoint and rc commands are on place ).
  • Switch to second log in top right menu.
  • Add gyro | unfiltered_gyro | gyro_scaled and press on any axis.
  • Analyzer display will appear with no data (it is hard to see need to hover the cursor on bottom left area).

f12 console shows error:

Cannot plot analyser TypeError: Cannot read properties of undefined (reading '0') grapher.js:878

For first log it works as expected

Expected behavior

"Analyzer display" shows gyro data.

Betaflight Blackbox Explorer version

3.7.0 (master)

Add any other context about the problem that you think might be relevant here

No response

@tbolin could you kindly check it?

Do you want to test this code? Here you have an automated build:
Betaflight-Blackbox-Explorer-Linux
Betaflight-Blackbox-Explorer-macOS
Betaflight-Blackbox-Explorer-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

  • using bfd5ab7e
  • reproducible only on Freq vs Throttle, reproducible on a personal Sept 2023 log

Do you want to test this code? Here you have an automated build:
Betaflight-Blackbox-Explorer-Linux
Betaflight-Blackbox-Explorer-macOS
Betaflight-Blackbox-Explorer-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

Do you want to test this code? Here you have an automated build:
Betaflight-Blackbox-Explorer-Linux
Betaflight-Blackbox-Explorer-macOS
Betaflight-Blackbox-Explorer-Windows
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!