diff --git a/locales/en/messages.json b/locales/en/messages.json index 10225763..b08d66f5 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1127,13 +1127,15 @@ "portsFunction_RUNCAM_DEVICE_CONTROL": { "message": "RunCam Device" }, - "pidTuningProfileOption": { "message": "Profile $1" }, "pidTuningRateProfileOption": { "message": "Rateprofile $1" }, + "portsFunction_LIDAR_TF": { + "message": "Benewake LIDAR" + }, "pidTuningUpgradeFirmwareToChangePidController": { "message": "Changing PID controller disabled - you can change it via the CLI. You have firmware with API version $1, but this functionality requires $2." }, diff --git a/src/js/msp/MSPHelper.js b/src/js/msp/MSPHelper.js index 35b0da71..eaa4dd51 100644 --- a/src/js/msp/MSPHelper.js +++ b/src/js/msp/MSPHelper.js @@ -24,7 +24,8 @@ function MspHelper () { 'TBS_SMARTAUDIO': 11, 'TELEMETRY_IBUS': 12, 'IRC_TRAMP': 13, - 'RUNCAM_DEVICE_CONTROL': 14 // support communitate with RunCam Device + 'RUNCAM_DEVICE_CONTROL': 14, // support communitate with RunCam Device + 'LIDAR_TF': 15 }; } diff --git a/src/js/tabs/ports.js b/src/js/tabs/ports.js index f7e65353..34518fcf 100644 --- a/src/js/tabs/ports.js +++ b/src/js/tabs/ports.js @@ -47,6 +47,10 @@ TABS.ports.initialize = function (callback, scrollPosition) { functionRules.push({ name: 'RUNCAM_DEVICE_CONTROL', groups: ['peripherals'], maxPorts: 1 }); } + if (semver.gte(CONFIG.apiVersion, "1.37.0")) { + functionRules.push({ name: 'LIDAR_TF', groups: ['peripherals'], maxPorts: 1 }); + } + for (var i = 0; i < functionRules.length; i++) { functionRules[i].displayName = i18n.getMessage('portsFunction_' + functionRules[i].name); }