mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-21 15:25:19 +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": {
|
"portsFunction_RUNCAM_SPLIT_CONTROL": {
|
||||||
"message": "RunCam Split"
|
"message": "RunCam Split"
|
||||||
},
|
},
|
||||||
|
"portsFunction_TBS_SMARTAUDIO": {
|
||||||
|
"message": "TBS SmartAudio"
|
||||||
|
},
|
||||||
|
"portsFunction_IRC_TRAMP": {
|
||||||
|
"message": "IRC Tramp"
|
||||||
|
},
|
||||||
"pidTuningName": {
|
"pidTuningName": {
|
||||||
"message": "Name"
|
"message": "Name"
|
||||||
},
|
},
|
||||||
|
|
|
@ -42,7 +42,9 @@ var mspHelper = (function (gui) {
|
||||||
'BLACKBOX': 7,
|
'BLACKBOX': 7,
|
||||||
'TELEMETRY_MAVLINK': 8,
|
'TELEMETRY_MAVLINK': 8,
|
||||||
'TELEMETRY_IBUS': 9,
|
'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")) {
|
if (semver.gte(CONFIG.flightControllerVersion, "1.2.0")) {
|
||||||
var mavlinkFunctionRule = {name: 'TELEMETRY_MAVLINK', groups: ['telemetry'], sharableWith: ['msp'], notSharableWith: ['blackbox'], maxPorts: 1};
|
functionRules.push({
|
||||||
functionRules.push(mavlinkFunctionRule);
|
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++) {
|
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