Added peripheral device entry "Benewake LIDAR" for UART

10.3.x-maintenance
Bas Delfos 2018-01-31 20:49:03 +01:00
parent a5b347489c
commit 2a002b97ff
3 changed files with 9 additions and 2 deletions

View File

@ -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": "<span class=\"message-negative\">Changing PID controller disabled - you can change it via the CLI.</span> You have firmware with API version <span class=\"message-negative\">$1</span>, but this functionality requires <span class=\"message-positive\">$2</span>."
},

View File

@ -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
};
}

View File

@ -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);
}