mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-26 01:35:23 +03:00
MAVLink initial support
This commit is contained in:
parent
395c413992
commit
e366967be8
3 changed files with 9 additions and 0 deletions
|
@ -726,6 +726,9 @@
|
|||
"portsFunction_TELEMETRY_LTM": {
|
||||
"message": "LTM"
|
||||
},
|
||||
"portsFunction_TELEMETRY_MAVLINK": {
|
||||
"message": "MAVLink"
|
||||
},
|
||||
"portsFunction_TELEMETRY_MSP": {
|
||||
"message": "MSP"
|
||||
},
|
||||
|
|
|
@ -150,6 +150,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…
Add table
Add a link
Reference in a new issue