Support for MAVLink telemetry
parent
81a49d48b2
commit
a8143e11c1
|
@ -723,6 +723,9 @@
|
|||
"portsFunction_TELEMETRY_LTM": {
|
||||
"message": "LTM"
|
||||
},
|
||||
"portsFunction_TELEMETRY_MAVLINK": {
|
||||
"message": "MAVLink"
|
||||
},
|
||||
"portsFunction_TELEMETRY_MSP": {
|
||||
"message": "MSP"
|
||||
},
|
||||
|
|
|
@ -149,6 +149,7 @@ var MSP = {
|
|||
'TELEMETRY_SMARTPORT': 5,
|
||||
'RX_SERIAL': 6,
|
||||
'BLACKBOX': 7,
|
||||
'TELEMETRY_MAVLINK': 8,
|
||||
},
|
||||
|
||||
read: function (readInfo) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue