Support for MAVLink telemetry

10.3.x-maintenance
Konstantin Sharlaimov (DigitalEntity) 2016-05-06 21:04:31 +10:00
parent 81a49d48b2
commit a8143e11c1
3 changed files with 9 additions and 0 deletions

View File

@ -723,6 +723,9 @@
"portsFunction_TELEMETRY_LTM": {
"message": "LTM"
},
"portsFunction_TELEMETRY_MAVLINK": {
"message": "MAVLink"
},
"portsFunction_TELEMETRY_MSP": {
"message": "MSP"
},

View File

@ -149,6 +149,7 @@ var MSP = {
'TELEMETRY_SMARTPORT': 5,
'RX_SERIAL': 6,
'BLACKBOX': 7,
'TELEMETRY_MAVLINK': 8,
},
read: function (readInfo) {

View File

@ -25,6 +25,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
functionRules.push(mspFunctionRule);
}
if (semver.gte(CONFIG.apiVersion, "1.18.0")) {
var mavlinkFunctionRule = {name: 'TELEMETRY_MAVLINK', groups: ['telemetry'], sharableWith: ['msp'], notSharableWith: ['blackbox'], maxPorts: 1};
functionRules.push(mavlinkFunctionRule);
}
for (var i = 0; i < functionRules.length; i++) {
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
}