betaflight / blackbox-log-viewer

Interactive log viewer for flight logs recorded with blackbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display BF4.3 log, gyro data not displayed correctly

jasc76 opened this issue · comments

Describe the bug

I have a build with BF4.3 and the only thing that might be special is, that the fc is flipped upside down.
Gyro traces (here debug gyro scaled) but also the other gyro stuff is displayed totally wrong.
I randomly chose BBE 3.4 and it shows the data correctly
btfl_all.zip - Quad without props, armed and moved by hand
BBE3.6.0
BBe36
BBE3.4.0
BBE34

To Reproduce

Load attached log file in BBE 3.6 and 3.4

Expected behavior

Show data correctly

Betaflight Blackbox Explorer version

3.6.0

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

btfl_all.zip

Please post a screenshot of your rates settings as it works fine with defaults settings.

The graph from your log would show up as before using the default case instead:

GraphConfig.getDefaultCurveForField = function(flightLog, fieldName) {
var
sysConfig = flightLog.getSysConfig();
var maxDegreesSecond = function(scale) {
switch(sysConfig["rates_type"]){
case RATES_TYPE.indexOf('ACTUAL'):
case RATES_TYPE.indexOf('QUICK'):
return Math.max(sysConfig["rates"][0] * 10.0 * scale,
sysConfig["rates"][1] * 10.0 * scale,
sysConfig["rates"][2] * 10.0 * scale);
default:
return Math.max(flightLog.rcCommandRawToDegreesPerSecond(500,0) * scale,
flightLog.rcCommandRawToDegreesPerSecond(500,1) * scale,
flightLog.rcCommandRawToDegreesPerSecond(500,2) * scale);
}
}