mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
Merge pull request #343 from basdelfos/esc_telemetry
Added configuration of KISS ESC Telemetry
This commit is contained in:
commit
64e7f8ef3d
4 changed files with 152 additions and 134 deletions
|
@ -527,6 +527,9 @@
|
|||
"featureBLACKBOXTip": {
|
||||
"message": "Configure via the BlackBox tab after enabling."
|
||||
},
|
||||
"featureESC_TELEMETRY": {
|
||||
"message": "KISS ESC 24A telemetry support"
|
||||
},
|
||||
"featureCHANNEL_FORWARDING": {
|
||||
"message": "Forward aux channels to servo outputs"
|
||||
},
|
||||
|
@ -777,6 +780,9 @@
|
|||
"portsFunction_TELEMETRY_SMARTPORT": {
|
||||
"message": "SmartPort"
|
||||
},
|
||||
"portsFunction_TELEMETRY_ESC": {
|
||||
"message": "ESC telemetry"
|
||||
},
|
||||
"portsFunction_RX_SERIAL": {
|
||||
"message": "Serial RX"
|
||||
},
|
||||
|
|
|
@ -64,6 +64,12 @@ var Features = function (config) {
|
|||
{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;
|
||||
|
|
|
@ -20,6 +20,7 @@ function MspHelper () {
|
|||
'RX_SERIAL': 6,
|
||||
'BLACKBOX': 7,
|
||||
'TELEMETRY_MAVLINK': 8,
|
||||
'TELEMETRY_ESC': 10
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,11 @@ TABS.ports.initialize = function (callback, scrollPosition) {
|
|||
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++) {
|
||||
functionRules[i].displayName = chrome.i18n.getMessage('portsFunction_' + functionRules[i].name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue