1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Added GUI support for iBUS telemetry.

This commit is contained in:
Michael Keller 2017-01-27 09:55:56 +13:00
parent a9bbbe5a32
commit 0cab8f9277
3 changed files with 10 additions and 1 deletions

View file

@ -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>."
},

View file

@ -22,6 +22,7 @@ function MspHelper () {
'TELEMETRY_MAVLINK': 9,
'ESC_SENSOR': 10,
'TBS_SMARTAUDIO': 11,
'TELEMETRY_IBUS': 12,
'IRC_TRAMP': 13
};
}

View file

@ -38,6 +38,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
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);
}