Merge pull request #407 from mikeller/added_ibus_telemetry
Added GUI support for iBUS telemetry.10.3.x-maintenance
commit
4825f2c78c
|
@ -822,6 +822,9 @@
|
|||
"portsFunction_IRC_TRAMP": {
|
||||
"message": "IRC Tramp"
|
||||
},
|
||||
"portsFunction_TELEMETRY_IBUS": {
|
||||
"message": "iBUS Telemetry"
|
||||
},
|
||||
"pidTuningUpgradeFirmwareToChangePidController": {
|
||||
"message": "<span style=\"color: red\">Changing PID controller disabled - you can change it via the CLI.</span> You have firmware with API version <span style=\"color: red\">$1</span>, but this functionality requires requires <span style=\"color: #ffbb00\">$2</span>."
|
||||
},
|
||||
|
|
|
@ -22,6 +22,7 @@ function MspHelper () {
|
|||
'TELEMETRY_MAVLINK': 9,
|
||||
'ESC_SENSOR': 10,
|
||||
'TBS_SMARTAUDIO': 11,
|
||||
'TELEMETRY_IBUS': 12,
|
||||
'IRC_TRAMP': 13
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34,10 +34,15 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
|||
functionRules.push({ name: 'ESC_SENSOR', groups: ['sensors'], maxPorts: 1 });
|
||||
functionRules.push({ name: 'TBS_SMARTAUDIO', groups: ['peripherals'], maxPorts: 1 });
|
||||
}
|
||||
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.27.0")) {
|
||||
functionRules.push({ name: 'IRC_TRAMP', groups: ['peripherals'], maxPorts: 1 });
|
||||
}
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.32.0")) {
|
||||
functionRules.push({ name: 'TELEMETRY_IBUS', groups: ['telemetry'], maxPorts: 1 });
|
||||
}
|
||||
|
||||
for (var i = 0; i < functionRules.length; i++) {
|
||||
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue