added serial function for IRC Tramp

10.3.x-maintenance
Raphael Coeffic 2017-01-16 14:33:21 +01:00
parent 9cb7de962c
commit 8129640153
3 changed files with 6 additions and 1 deletions

View File

@ -819,6 +819,9 @@
"portsFunction_TBS_SMARTAUDIO": { "portsFunction_TBS_SMARTAUDIO": {
"message": "TBS SmartAudio" "message": "TBS SmartAudio"
}, },
"portsFunction_IRC_TRAMP": {
"message": "IRC Tramp"
},
"pidTuningUpgradeFirmwareToChangePidController": { "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>." "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, 'BLACKBOX': 7,
'TELEMETRY_MAVLINK': 9, 'TELEMETRY_MAVLINK': 9,
'ESC_SENSOR': 10, '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")) { if (semver.gte(CONFIG.flightControllerVersion, "3.1.0")) {
functionRules.push({ name: 'ESC_SENSOR', groups: ['sensors'], maxPorts: 1 }); functionRules.push({ name: 'ESC_SENSOR', groups: ['sensors'], maxPorts: 1 });
functionRules.push({ name: 'TBS_SMARTAUDIO', groups: ['peripherals'], 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++) { for (var i = 0; i < functionRules.length; i++) {