1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-17 21:35:33 +03:00

First cut of support for custom airplane and tricopter on servos tab.

This commit is contained in:
Dominic Clifton 2015-06-28 23:19:03 +01:00
parent 438dc8d46d
commit 4e41f46523
2 changed files with 6 additions and 2 deletions

View file

@ -25,5 +25,7 @@ var mixerList = [
{name: 'Singlecopter', model: 'custom', image: 'custom'},
{name: 'A-tail Quad', model: 'quad_atail', image: 'atail_quad'},
{name: 'Custom', model: 'custom', image: 'custom'},
{name: 'Custom Airplane', model: 'custom', image: 'custom'}
{name: 'Custom Airplane', model: 'custom', image: 'custom'},
{name: 'Custom Tricopter', model: 'custom', image: 'custom'}
];

View file

@ -205,10 +205,11 @@ TABS.servos.initialize = function (callback) {
$('div.tab-servos table.fields tr:not(:first)').remove();
var model = $('div.tab-servos strong.model');
var supported_models = [1, 4, 5, 8, 14, 20, 21];
var supported_models = [1, 4, 5, 8, 14, 20, 21, 24, 25];
switch (CONFIG.multiType) {
case 1: // TRI
case 25: // CUSTOM_TRI
// looking ok so far
model.text('TRI');
@ -249,6 +250,7 @@ TABS.servos.initialize = function (callback) {
process_servos('Right Wing', '', 4, false);
break;
case 14: // Airplane
case 24: // Custom_Airplane
model.text('Airplane');
// rate