diff --git a/src/flightlog_fielddefs.js b/src/flightlog_fielddefs.js index ddd93175..9c90d7f0 100644 --- a/src/flightlog_fielddefs.js +++ b/src/flightlog_fielddefs.js @@ -552,13 +552,18 @@ export function adjustFieldDefsList(firmwareType, firmwareVersion) { DEBUG_MODE.splice(DEBUG_MODE.indexOf('GPS_RESCUE_THROTTLE_PID'), 1, 'AUTOPILOT_ALTITUDE'); DEBUG_MODE.splice(DEBUG_MODE.indexOf("GYRO_SCALED"), 1); DEBUG_MODE.splice(DEBUG_MODE.indexOf("RANGEFINDER_QUALITY") + 1, 0, "OPTICALFLOW"); - DEBUG_MODE.push('TPA'); - DEBUG_MODE.push('S_TERM'); - DEBUG_MODE.push('SPA'); - DEBUG_MODE.push('TASK'); - DEBUG_MODE.push('GIMBAL'); - DEBUG_MODE.push('WING_SETPOINT'); - DEBUG_MODE.push('AUTOPILOT_POSITION'); + DEBUG_MODE.push( + 'TPA', + 'S_TERM', + 'SPA', + 'TASK', + 'GIMBAL', + 'WING_SETPOINT', + 'AUTOPILOT_POSITION', + 'CHIRP', + 'FLASH_TEST_PRBS', + 'MAVLINK_TELEMETRY', + ); } if (semver.gte(firmwareVersion, "2025.12.0")) { //rename DUAL_GYRO_ to MULTI_GYRO @@ -623,7 +628,7 @@ export function adjustFieldDefsList(firmwareType, firmwareVersion) { ); } } - + FLIGHT_LOG_FLIGHT_MODE_NAME = makeReadOnly(FLIGHT_LOG_FLIGHT_MODE_NAME); } else { DEBUG_MODE = DEBUG_MODE_COMPLETE; diff --git a/src/flightlog_fields_presenter.js b/src/flightlog_fields_presenter.js index 18ffb3c6..a639e64a 100644 --- a/src/flightlog_fields_presenter.js +++ b/src/flightlog_fields_presenter.js @@ -1134,6 +1134,13 @@ const DEBUG_FRIENDLY_FIELD_NAMES_INITIAL = { "debug[4]": "Stick Limit", "debug[5]": "Speed Limit", }, + MAVLINK_TELEMETRY: { + "debug[all]": "MAVLink telemetry", + "debug[0]": "Should send telemetry", + "debug[1]": "Actual free TX buffers space", + "debug[2]": "Estimated free TX buffers space", + "debug[3]": "Telemetries call counter", + }, }; let DEBUG_FRIENDLY_FIELD_NAMES = null; diff --git a/src/graph_config.js b/src/graph_config.js index 31fb15a7..8e238467 100644 --- a/src/graph_config.js +++ b/src/graph_config.js @@ -596,7 +596,7 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) { min: 0, max: 1, }, - }; + }; case "debug[6]": // outlier count 0-3 case "debug[7]": // valid count 0-3 return { @@ -605,7 +605,7 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) { min: 0, max: 50, // put them at the very bottom }, - }; + }; default: return getCurveForMinMaxFields(fieldName); } @@ -859,7 +859,7 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) { min: 0, max: 1, }, - }; + }; case "debug[7]": // smoothed Rx Rate Hz return { power: 1.0, @@ -867,7 +867,7 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) { min: 0, max: 1200, }, - }; + }; default: return getCurveForMinMaxFields(fieldName); } @@ -1454,6 +1454,36 @@ GraphConfig.getDefaultCurveForField = function (flightLog, fieldName) { default: return getCurveForMinMaxFields(fieldName); } + case "MAVLINK_TELEMETRY": + switch (fieldName) { + case "debug[0]": + return { + power: 1, + MinMax: { + min: 0, + max: 1, + }, + }; + case "debug[1]": + case "debug[2]": + return { + power: 1, + MinMax: { + min: 0, + max: 100, + }, + }; + case "debug[3]": + return { + power: 1, + MinMax: { + min: 0, + max: 50, + }, + }; + default: + return getCurveForMinMaxFields(fieldName); + } } } // if not found above then