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

Merge pull request #343 from basdelfos/esc_telemetry

Added configuration of KISS ESC Telemetry
This commit is contained in:
Michael Keller 2016-11-20 23:47:42 +13:00 committed by GitHub
commit 64e7f8ef3d
4 changed files with 152 additions and 134 deletions

View file

@ -527,6 +527,9 @@
"featureBLACKBOXTip": { "featureBLACKBOXTip": {
"message": "Configure via the BlackBox tab after enabling." "message": "Configure via the BlackBox tab after enabling."
}, },
"featureESC_TELEMETRY": {
"message": "KISS ESC 24A telemetry support"
},
"featureCHANNEL_FORWARDING": { "featureCHANNEL_FORWARDING": {
"message": "Forward aux channels to servo outputs" "message": "Forward aux channels to servo outputs"
}, },
@ -777,6 +780,9 @@
"portsFunction_TELEMETRY_SMARTPORT": { "portsFunction_TELEMETRY_SMARTPORT": {
"message": "SmartPort" "message": "SmartPort"
}, },
"portsFunction_TELEMETRY_ESC": {
"message": "ESC telemetry"
},
"portsFunction_RX_SERIAL": { "portsFunction_RX_SERIAL": {
"message": "Serial RX" "message": "Serial RX"
}, },

View file

@ -64,6 +64,12 @@ var Features = function (config) {
{bit: 18, group: 'other', name: 'OSD'} {bit: 18, group: 'other', name: 'OSD'}
); );
} }
if (semver.gte(config.flightControllerVersion, "3.1.0")) {
features.push(
{bit: 27, group: 'other', name: 'ESC_TELEMETRY'}
)
}
} }
self._features = features; self._features = features;

View file

@ -20,6 +20,7 @@ function MspHelper () {
'RX_SERIAL': 6, 'RX_SERIAL': 6,
'BLACKBOX': 7, 'BLACKBOX': 7,
'TELEMETRY_MAVLINK': 8, 'TELEMETRY_MAVLINK': 8,
'TELEMETRY_ESC': 10
}; };
} }

View file

@ -30,6 +30,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
functionRules.push(mavlinkFunctionRule); functionRules.push(mavlinkFunctionRule);
} }
if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
var escTlmFunctionRule = {name: 'TELEMETRY_ESC', groups: ['telemetry'], maxPorts: 1};
functionRules.push(escTlmFunctionRule);
}
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);
} }