mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 21:35:33 +03:00
Support for MAVLink telemetry
This commit is contained in:
parent
81a49d48b2
commit
a8143e11c1
3 changed files with 9 additions and 0 deletions
|
@ -723,6 +723,9 @@
|
||||||
"portsFunction_TELEMETRY_LTM": {
|
"portsFunction_TELEMETRY_LTM": {
|
||||||
"message": "LTM"
|
"message": "LTM"
|
||||||
},
|
},
|
||||||
|
"portsFunction_TELEMETRY_MAVLINK": {
|
||||||
|
"message": "MAVLink"
|
||||||
|
},
|
||||||
"portsFunction_TELEMETRY_MSP": {
|
"portsFunction_TELEMETRY_MSP": {
|
||||||
"message": "MSP"
|
"message": "MSP"
|
||||||
},
|
},
|
||||||
|
|
|
@ -149,6 +149,7 @@ var MSP = {
|
||||||
'TELEMETRY_SMARTPORT': 5,
|
'TELEMETRY_SMARTPORT': 5,
|
||||||
'RX_SERIAL': 6,
|
'RX_SERIAL': 6,
|
||||||
'BLACKBOX': 7,
|
'BLACKBOX': 7,
|
||||||
|
'TELEMETRY_MAVLINK': 8,
|
||||||
},
|
},
|
||||||
|
|
||||||
read: function (readInfo) {
|
read: function (readInfo) {
|
||||||
|
|
|
@ -25,6 +25,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
||||||
functionRules.push(mspFunctionRule);
|
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++) {
|
for (var i = 0; i < functionRules.length; i++) {
|
||||||
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
|
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue