Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tabs
diff options
context:
space:
mode:
authorKonstantin Sharlaimov (DigitalEntity) <konstantin.sharlaimov@gmail.com>2019-05-11 23:04:23 +0300
committerKonstantin Sharlaimov (DigitalEntity) <konstantin.sharlaimov@gmail.com>2019-05-11 23:04:23 +0300
commitbc95909055a08171d1fb4fc58824711f643fc7fb (patch)
tree54c6fb30f25e996197e6edadb1eda1379a0c39c5 /tabs
parent8b9ed3144893d5bc402dd731e06a066ee6faa3a4 (diff)
[PORTS] Add ESC and OPFLOW to serial port bit masks
Diffstat (limited to 'tabs')
-rw-r--r--tabs/ports.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tabs/ports.js b/tabs/ports.js
index 229e3bce..13e2227e 100644
--- a/tabs/ports.js
+++ b/tabs/ports.js
@@ -64,6 +64,21 @@ TABS.ports.initialize = function (callback) {
groups: ['peripherals'],
maxPorts: 1 }
);
+
+ if (semver.gte(CONFIG.flightControllerVersion, "2.2.0")) {
+ functionRules.push({
+ name: 'OPFLOW',
+ groups: ['sensors'],
+ maxPorts: 1 }
+ );
+
+ functionRules.push({
+ name: 'ESC',
+ groups: ['peripherals'],
+ maxPorts: 1 }
+ );
+ }
+
for (var i = 0; i < functionRules.length; i++) {
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
}