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" "message": "Blackbox logging rate"
}, },
"onboardLoggingDebugFields": { "onboardLoggingDebugFields": {
"message": "Blackbox debug fields" "message": "Data included"
}, },
"onboardLoggingDebugMode": { "onboardLoggingDebugMode": {
"message": "Blackbox debug mode" "message": "Blackbox debug mode"

View File

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

View File

@ -349,21 +349,7 @@ onboard_logging.initialize = function (callback) {
} }
debugModeSelect.val(FC.PID_ADVANCED_CONFIG.debugMode); debugModeSelect.val(FC.PID_ADVANCED_CONFIG.debugMode);
debugModeSelect.sortSelect("NONE");
// 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);
}
});
},
});
} else { } else {
$('.blackboxDebugMode').hide(); $('.blackboxDebugMode').hide();
@ -375,18 +361,18 @@ onboard_logging.initialize = function (callback) {
$('.blackboxDebugFields').show(); $('.blackboxDebugFields').show();
const debugFields = [ const debugFields = [
{ text: "PID Data" }, { text: "PID" },
{ text: "RC Commands Data" }, { text: "RC Commands" },
{ text: "Setpoint Data" }, { text: "Setpoint" },
{ text: "Battery Data" }, { text: "Battery" },
{ text: "Magnetometer Data" }, { text: "Magnetometer" },
{ text: "Altitude Data" }, { text: "Altitude" },
{ text: "RSSI Data" }, { text: "RSSI" },
{ text: "Gyro Data" }, { text: "Gyro" },
{ text: "Accelerometer Data" }, { text: "Accelerometer" },
{ text: "Debug Log Data" }, { text: "Debug Log" },
{ text: "Motor Data" }, { text: "Motor" },
{ text: "GPS Data" }, { text: "GPS" },
]; ];
let fieldsMask = FC.BLACKBOX.blackboxDisabledMask; let fieldsMask = FC.BLACKBOX.blackboxDisabledMask;