Merge pull request #391 from raphaelcoeffic/tramp_serial

added serial function for IRC Tramp
10.3.x-maintenance
borisbstyle 2017-01-16 16:36:11 +01:00 committed by GitHub
commit bb1d400d2b
3 changed files with 6 additions and 1 deletions

View File

@ -819,6 +819,9 @@
"portsFunction_TBS_SMARTAUDIO": {
"message": "TBS SmartAudio"
},
"portsFunction_IRC_TRAMP": {
"message": "IRC Tramp"
},
"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

@ -21,7 +21,8 @@ function MspHelper () {
'BLACKBOX': 7,
'TELEMETRY_MAVLINK': 9,
'ESC_SENSOR': 10,
'TBS_SMARTAUDIO': 11
'TBS_SMARTAUDIO': 11,
'IRC_TRAMP': 13
};
}

View File

@ -33,6 +33,7 @@ TABS.ports.initialize = function (callback, scrollPosition) {
if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
functionRules.push({ name: 'ESC_SENSOR', groups: ['sensors'], maxPorts: 1 });
functionRules.push({ name: 'TBS_SMARTAUDIO', groups: ['peripherals'], maxPorts: 1 });
functionRules.push({ name: 'IRC_TRAMP', groups: ['peripherals'], maxPorts: 1 });
}
for (var i = 0; i < functionRules.length; i++) {