Change blackbox debug (#3381)

master
Mark Haslinghuis 2023-03-18 00:59:54 +01:00 committed by GitHub
parent 23af01b218
commit 43e080b81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 31 deletions

View File

@ -6409,7 +6409,7 @@
"message": "Blackbox logging rate"
},
"onboardLoggingDebugFields": {
"message": "Blackbox debug fields"
"message": "Data included"
},
"onboardLoggingDebugMode": {
"message": "Blackbox debug mode"

View File

@ -225,9 +225,6 @@
line-height: 20px;
}
}
.blackboxDebugModeText {
margin-left: 7px !important;
}
.sdcard {
padding: 10px;
float: left;

View File

@ -349,21 +349,7 @@ onboard_logging.initialize = function (callback) {
}
debugModeSelect.val(FC.PID_ADVANCED_CONFIG.debugMode);
// Convert to select2 and order alphabetic
debugModeSelect.select2({
sorter(data) {
return data.sort(function(a, b) {
if (a.text === "NONE" || b.text === i18n.getMessage('onboardLoggingDebugModeUnknown')) {
return -1;
} else if (b.text ==="NONE" || a.text === i18n.getMessage('onboardLoggingDebugModeUnknown')) {
return 1;
} else {
return a.text.localeCompare(b.text);
}
});
},
});
debugModeSelect.sortSelect("NONE");
} else {
$('.blackboxDebugMode').hide();
@ -375,18 +361,18 @@ onboard_logging.initialize = function (callback) {
$('.blackboxDebugFields').show();
const debugFields = [
{ text: "PID Data" },
{ text: "RC Commands Data" },
{ text: "Setpoint Data" },
{ text: "Battery Data" },
{ text: "Magnetometer Data" },
{ text: "Altitude Data" },
{ text: "RSSI Data" },
{ text: "Gyro Data" },
{ text: "Accelerometer Data" },
{ text: "Debug Log Data" },
{ text: "Motor Data" },
{ text: "GPS Data" },
{ text: "PID" },
{ text: "RC Commands" },
{ text: "Setpoint" },
{ text: "Battery" },
{ text: "Magnetometer" },
{ text: "Altitude" },
{ text: "RSSI" },
{ text: "Gyro" },
{ text: "Accelerometer" },
{ text: "Debug Log" },
{ text: "Motor" },
{ text: "GPS" },
];
let fieldsMask = FC.BLACKBOX.blackboxDisabledMask;