mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-19 14:25:13 +03:00
SmartAudio and Tramp support
This commit is contained in:
parent
4339bc0604
commit
3920cfa443
3 changed files with 29 additions and 3 deletions
|
@ -789,6 +789,12 @@
|
|||
"portsFunction_RUNCAM_SPLIT_CONTROL": {
|
||||
"message": "RunCam Split"
|
||||
},
|
||||
"portsFunction_TBS_SMARTAUDIO": {
|
||||
"message": "TBS SmartAudio"
|
||||
},
|
||||
"portsFunction_IRC_TRAMP": {
|
||||
"message": "IRC Tramp"
|
||||
},
|
||||
"pidTuningName": {
|
||||
"message": "Name"
|
||||
},
|
||||
|
|
|
@ -42,7 +42,9 @@ var mspHelper = (function (gui) {
|
|||
'BLACKBOX': 7,
|
||||
'TELEMETRY_MAVLINK': 8,
|
||||
'TELEMETRY_IBUS': 9,
|
||||
'RUNCAM_SPLIT_CONTROL' : 10
|
||||
'RUNCAM_SPLIT_CONTROL' : 10,
|
||||
'TBS_SMARTAUDIO': 11,
|
||||
'IRC_TRAMP': 12
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -17,8 +17,13 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
|||
];
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.2.0")) {
|
||||
var mavlinkFunctionRule = {name: 'TELEMETRY_MAVLINK', groups: ['telemetry'], sharableWith: ['msp'], notSharableWith: ['blackbox'], maxPorts: 1};
|
||||
functionRules.push(mavlinkFunctionRule);
|
||||
functionRules.push({
|
||||
name: 'TELEMETRY_MAVLINK',
|
||||
groups: ['telemetry'],
|
||||
sharableWith: ['msp'],
|
||||
notSharableWith: ['blackbox'],
|
||||
maxPorts: 1
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -43,6 +48,19 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
|||
);
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.7.4")) {
|
||||
functionRules.push({
|
||||
name: 'TBS_SMARTAUDIO',
|
||||
groups: ['peripherals'],
|
||||
maxPorts: 1 }
|
||||
);
|
||||
functionRules.push({
|
||||
name: 'IRC_TRAMP',
|
||||
groups: ['peripherals'],
|
||||
maxPorts: 1 }
|
||||
);
|
||||
}
|
||||
|
||||
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